I think people's isolation is one of the major drivers of mental health problems.
It's not just a recent thing, it's been going on for decades, and many people don't even realize that our society is not normal because they have never lived in a community with a strong social fabric.
Other things that have affected this significantly are the car, the television, the fact that so many people have to move away from their hometown to work as adults, that people move jobs and homes so often. The move away from neighbourhood schools, lack of playing out for children. Even women going out to work, because it meant that neighbourhoods in the daytime became deserted, leaving only a few behind.
There have been studies on how strong relationships and friendships are formed, and one of the important things is really just ease of maintaining contact. If you see people regularly around the neighborhood in third spaces to have a chat (say while doing your shopping), if it takes 10 minutes rather than half an hour or more to get together, you are much more likely to see people regularly. And friendships just take a certain amount of time spent to establish, so the harder it is, the less likely it will happen. Then you move in a few years, or they do, and you need to start again - it's too much for people.
My dad told me a story yesterday, he has lived in the same small town/village for 20 years. He was walking down the street to the seniors club, and was struggling due to health issues. Someone driving by saw him, and didn't really know him but called a fellow who did. He called my mum, who called her friend who works at the hospital, who went out and picked him up. The effect of that is not just a matter of someone helping practically. It's creates a feeling that you are cared for, that people value you in your community, that you are safe there, it's more possible to be active because others look out for you and help. That's hugely positive for mental health IMO.
As an introvert, I understand why some people like the options of anonymity, but I think that despite the effort that social interaction can involve, it can still be very protective.