What additionally complicates things is that habitable land is close to a zero-sum resource for all practical purposes, since to be useful, it must be near other people. Thus, however wealthy a society gets, for a typical person it always requires a whole lot of work to be able to afford decent lodging
Housing need not be as scarce as land, if regulatory permission for tall buildings and good transport networks exist. There is a lot of variation on this dimension already today. Automated mining, construction and cheap energy could make sizable individual apartments in tall buildings cheap, not to mention transport improvements like robocars.
I agree that the situation can be improved that way, though it's arguable how much it runs against the problem that packing people tightly together has the effect of increasing discomfort and severely lowering status. But even with optimistic assumptions, I think it's still the case that housing can never become non-scarce the way food and clothing could (and to a large degree already have). There is in principle no limit to how cheaply mass-produced stuff can be cranked out, Moore's law-style, but this clearly can't work anywhere as effectively for housing, even with very optimistic assumptions.
From Mike Darwn's Chronopause, an essay titled "Would You Like Another Plate of This?", discussing people's attitudes to life:
Conclusion, graphs, and references in article. As usual, I recommend reading Chronopause.com as Darwin has many good articles; to quickly link a few: