There is, and always will be, a significant percentage of the population of ANY country that will not be able to afford decent housing without some sort of government intervention. Kind of like how in any country, some portion of old people would starve without social security or their country's equivalent.
Your options for that group of people, if you eliminate "affordable housing provided by some measure of government action" is "homelessness." Which is counterproductive and stupid.
The solutions don't have to be Park Avenue Penthouses. They also don't have to be complete shitholes. Again, plenty of countries do this, and do it just fine. E.g., in Finland, municipalities actually own land, and develop affordable housing on that land. It is rented out (so, the people there generally DID "get jobs" and work), but it's not done to maximize profit/revenue. It's done to compensate the government for its expense, while also providing affordable housing for the lowest-earning tiers of society.
There's a reason that literally every functioning state has some version of this sort of approach.