Real estate works but most people can't buy it without leverage (i.e a mortgage). Some people can't get a mortgage and by extension can't buy it at all.
Ironically these are also the reasons there will always be people that need to rent it.