It's not really the economy in general. It's just cities. Most major US metro areas have under-built housing compared to demand every decade since the 1970s, and all of it is entirely self-inflicted through zoning and permitting.
The only real hope of progress here is for states to start outright overriding local laws around housing, as California has been increasingly doing.