What's nuts is not just that investors get to buy homes, but that its tax advantaged to do so. Between prop 13 in California, to 1031 exchanges, there are plenty of reasons to invest in RE over even say the stock market. I don't get to do a 1031 exchange for my Meta stock into AAPL or something...
You forgot the biggest one – cheap mortgages backed by unlimited money printing. Ever since 2008 loading up on as much <3% housing debt as you can afford has been a no-brainer investing strategy.
Inflation causes living costs to go up, which means people have less money for rent, which means people who have borrowed to service mortgages don't get money, which has a knock on effect...meltdown.
Edit: Will guess I got a downvote for using the world meltdown, which was almost sarcasm because the powers that be will never let this happen.