All the recurring and one time fees take away from the leverage.
Playing with the buy or rent calculator from the NYT shows you how leverage is an absolute necessity:
https://www.nytimes.com/interactive/2014/upshot/buy-rent-cal...
Yes, in more ways than one. To juice returns, sure. But the main reason people lever into real estate is because they don't have the cash to buy. So most homebuyers enter into a favorable high-leverage asset whose gains are given preferred tax treatment.
Discussing residential RE as if leverage is optional is not useful.
The only aspect of "investment" should come from proper maintenance of structures, and replacing structures with greater density as soon as the land values justify it.
Home ownership as investment has been a generational disaster
There's a lot of mortgage features that make it attractive to "I'm not an Accredited Investor" types.
https://www.stlouisfed.org/open-vault/2018/may/why-economist...
https://www.economist.com/finance-and-economics/2017/02/02/w...
https://www.economist.com/free-exchange/2010/09/13/dont-defe...
https://www.economist.com/briefing/2015/05/16/a-senseless-su...
https://fivethirtyeight.com/features/the-tax-deductions-econ...
If either of those substantially changes, the US budget to inflation link becomes very different, because there won't be external sinks to soak up extra dollars.
Globalization will change on glacial timescales. And the alternatives don't look great: Euro (economic concerns), yen (economic concerns), yuan (economic and political concerns), ruble (economic and political and sanctions concerns), rupee (maybe if SE Asia gets its economic integration in order), naira (would need scale from other major African economies)
Oil being sunset is going to be fascinating macroeconomically, as a huge part of the US' world economic power flows through Saudi Arabia.
And that leverage is broadly available to most people, supported (and funded) by government policies.