Yes of course people were lonely before the internet and social media, but that pushed them to go outside and solve the problem. Now they do the digital equivalent of taking drugs to make the problem go away.
Prior to the internet people were staying home and watching TV. The dynamic is much longer lived than you think. Check out the book 'Bowling Alone'.