there isn't a loneliness epidemic. There is a diffuse inability to stay truly alone. Acquiring that ability would also teach how to not stay alone when needed.
Otherwise, people wouldn't resort to social media. Going to party aimlessly and hanging out isn't necessarily better. It depends on who you hang out with and what you do.
This is just my opinion, of course.