Also, taking on 30 years of debt is something, that mathematically might make sense, and many people handle it easily, but it's a huge mental burden to others. You take on the risk above, on the assumption that your income is stable for 30 years, but then you break your leg and get fired during corona. I don't have data on this, but 2/3 of the parents of my sister's classmates were divorced, so how do you smartly assume a stable family income for decades while not being naive about it?
This is all for "poor" people, who can't afford the risks mentioned.
And if you have a nation where you have lots of apartments buildings, you can actually buy an apartment if you want. And even as a reasonably poor person you might be able to afford mortgage on a cheapish apartment.
And even if you concede this example, housing is a special category and one the largest expanses. The whole 'boots' analogy suggest this is an everyday situation.