This all points to a huge undersupply of housing.
If prices are set by the maximum that people can pay, rather than what the costs are to provide housing, then there's an easy solution: allow more housing to be built.
Nearly everybody can afford to pay for the costs of providing housing: the maintenance, the amortized cost of construction over the lifetime of the house.
What people can't afford to pay for are the increases in land prices due to the housing shortage. This sets up a two class system: those that own the land and see benefit from appreciating land prices, and continue to have the flexibility to move and own land becuase they bought early, and the unlanded, who are doomed to pay ever increasing land costs in their monthly rents, with all the benefit going to landlords and homeowners who reap the land rents.
It's a gigantic unproductive transfer of wealth from those with less to those with more. In addition to the human misery and poverty that this causes among working people, this also greatly increases inequality, which further reduced economic output of society.
And there's a simple solution to it all: allow people to pay to build housing rather than forcing them to bid up limited supply and pass off their stored labor to idle land owners.
However, the homeowners who benefit from this system are the ones with the political power to keep their rentierism enforced by law...