Your comment seems disingenuous. You're also discounting the fact that you need a large downpayment (10,000+) to even get a mortgage in the first place. Do you not live in the USA? Housing prices are a real problem for my generation.
People live in homes for their entire lives. If they decide to be owners rather than renters, over the course of their life (actually, typically somewhat less than their whole lives) they will end up mortgage free. This is an important component of most people's retirement planning, in fact.
What's the cost to get to that point? It used to 2x annual salary, it's now nearly 6x annual salary. That's 4 full years of earnings which vanish into owning a home. If you do not reverse mortgage or sell during retirement, you effectively "lose" this money.
It's just not. You're not accounting for the interest paid over 30 years of a mortgage.
You might be arguing that 1970's cost-as-multiple-of-earnings plus 1970-accumulated-interest exceeds 2020's equivalent. Is that your point?
https://fred.stlouisfed.org/series/MDSP
This is an unusually good time to be a home owner. You can borrow at near 0 or even slightly negative real interest rates and buy an asset that is almost guaranteed to hold/increase in value.