Social housing is a thing in much of the world. Housing is cheap in many countries around the world as well. Healthcare is free in most of the world and good standard in majority of the developed world.
And "free in most of the world" dramatically oversimplifies an entire spectrum of healthcare funding models.