because suburbs and housing models like it designed around a closed loop even some apartment building which have high population density encourage social isolation.
compare a 'luxury' Florida apartment vs the old New York apartments built in the 1800s. the NY apartments have narrow stairs, one way in.
likewise dense / small cities / villages in either africa/europe etc force more natural social interaction.
even for friends - easier to host friends when they can easily walk to your home & they don't have to drink & drive.
so blaming tv, social media, video games etc doesn't get to the root of the matter.