You appear to be commenting from the POV of the US or Canada where land is plentiful and people build independent houses in towns and suburbs.
In the cities I mention, owning an independent house means your wealth is in tens of millions of dollars (mere millionaires would struggle to afford independent houses). The average middle class person is very much dependent on developers constructing multi storey apartments - and it's not in their economic interests to solve for parking requirements unless compelled as I explain above.
The cost of building a parking space doesn't evaporate just because it's required by the government. And builders will include parking if it's in sufficient demand, just as they include any other amenity in their buildings.