We could build roomy apartments with private outdoor areas that would still be more space efficient than a normal house.
I wouldn't mind living in an apartment, a backyard isn't a huge priority and these are perfect for single people, couples and small families.
The key thing is that an apartment and what your perception of an apartment is aren't the same. There's nothing that says it has to be this way.