There's also plenty of government regulations (at the local level, mainly involving zoning) that prevent building new housing, because existing homeowners want to keep property values high. How is that protecting peoples' safety?
Zoning is the least of your worries about keeping new housing from being built. There is an unwillingness to raze older buildings or industrial brownfields and turn them into housing. At least around here, there are many "undesirable" properties on bus lines, within reach of the city services, that would repurposed as housing sites.
I gave examples of regulations that protect people. Existing houses are safe enough to AirBnB or live in because of regulations.