All of those things were true thirty years ago (car-centric society, inequality, etc.) and yet loneliness wasn't as bad.
I think technology is almost certainly more to blame here. Endless online entertainment, social media, dating apps, etc. have all erased in-person social lives.