Building codes also push prices higher. In the EU, the recent regulations force developers to build luxury buildings as a baseline, at a high cost.
Not all buildings require elevators, intelligent thermostats, triple-panel windows or electric car plugs. Especially when you are experiencing a housing crisis.