But it's almost impossible to do that in much of the country because anything that's cheap to build, and houses a lot of people, hurts the property values of single-family-homeowners and is therefore banned.
Property values is the excuse but a lot of the most vocal NIMBYs are just misanthropes and absolutely hate the idea of having to live next to other people. Upzoning would majorly increase their property values overnight because an apartment building is a far more valuable use of a piece of property than a single family home, but they don't care because they just fucking hate everyone (including themselves) and don't understand why the city council won't just make it 1970 again.