Right, but that’s just a single, very un-typical country. Most people in developed countries live in cities. If you live in a city - you live in an apartment (unless you’re quite wealthy)z
I expect that most people living in NYC do not have a single family house with a garage and a garden.