Join a religious organization to fight loneliness is like start smoking to loose weight.
it also doesn't even fight loneliness. Loneliness isn't solved by merely not being physically alone. I grew up in a Catholic environment but because I bought exactly none of it the religious environments were exactly where I felt most isolated.
You're not solving loneliness by joining a cult or a gang. You can only deal with it by making authentic connections to people you actually want to be with. Countless of people are lonely and miserable within families.
Yeah I thought that was weird, along with joining ethnic organizations. I don't really need to explain the religion thing, but ethnic organizations are weird since you are forming an identity based on your unchoosable parent's DNA. I've seen both used by leaders to weaponize their members at their members detriment.
Although, if you are doing politics, I can see this being pragmatically useful.