I think the decline of the "third place" in modern society is a big contributor to loneliness
https://en.wikipedia.org/wiki/Third_place
Personally, I've found a pseudo third space on Discord - my friends and I share a common chatroom that we just hop in whenever we're free during the lockdowns to chat and sometimes play games