There's a lot of missing knowledge for someone to make the decision that way. Eg: most people, even upper middle class, often don't know basic investing. I certainly didn't until my mid 30s. If I had known even as much as how t-bills worked or index fund investing, I'd have WAAAAAY more money than I have now.
The flip side is that a lot of people don't buy real estate for the monetary aspect. They want to (figuratively) be able to drill holes in their walls. To some people, that's priceless.