On the idea about the elderly having comfort in friends etc, that can go the other way as well.
I see it with my elderly MIL, it might just be her but the people she knows all have various problems associated with ageing, illness and family problems and it just seems to drag her down to be honest.
I think maybe interacting with more of a range of people not just other elderly people who are isolated and with problems might help.
She seems to spend her time in a spiral of anxiety about them all, sometimes not wanting not to pick up the phone but feeling she 'has to'
One in particular is alone and drinks, and will call MIL late in the evening ranting about immigrants and past things done to her by men, for example. Another has a problem with animal hoarding. Another refuses to use any technology not even a TV then complains about being lonely.
None of them want to take medicines including for things like high blood pressure then have this oddly competitive thing where they go on about whose is the highest which is a bit odd. It's not helpful either as they encourage each other not to engage with doctors and could result in a stroke..