1. People have mortgages with very low interest rates. If they sell the home, they give up that cheap mortgage for a much higher mortgage interest rate with the next home. So, they stay.
2. The capital gains tax exemption of $500,000 has not risen with inflation. Selling your appreciated home will result in a large tax bill. It makes sense to sit in the home until you die, then it gets a basis boost when transferred to the heirs.