I have to agree with this.
One thing I miss the most after realizing I didn't believe in God and after I stopped going to church (= being part of the community) is that I had a lot harder time to find a group that I truly belonged to.
It's not as much that you have to like each and every person in the group, is more about knowing that you're there for each other and share a bigger, common understanding of life.
I guess that volunteering kind of has the same advantages, since people volunteering have a bigger goal (= serving others) and accept that they need to be together in this with other volunteers.