Is it? My understanding is that strictly return-wise, index funds are distinctly better than property value in most countries, especially if you factor in all the maintenance cost and risks. Some countries have pretty good tenant protection, which is another big factor in practice.
Separately: Personally, I've really enjoyed and benefitted from not having to deal with the complexities of ownership, and it is well worth it in my own time/money/hassle/annoyance calculation. My own time is the single most valuable asset I have; one could say: it is ultimately the only real asset I have. Everything else merely translates to that.