House size, build "quality" (the details in the house), resource scarcity, and zoning policy are the drivers of cost. Cheap credit and lifetime loans allow the system to continue.
Game out the economic implications of that sort of regulatory behavior across the entire real estate and housing sectors and suddenly a lot of stuff that makes no sense makes a lot more sense.