A contributing factor to housing costs I don't often see mentioned is urbanization. In the 21st century, population density has increased faster in major cities than rural areas.
The picture is probably more nuanced in the last half decade (post COVID), with many people moving to the countryside.