I was taught that there are 6 areas of Motivation:
external connection - yes; a circle of like minded people
internal connection - yes; a feeling of self esteem (superiority even)
certainty - having explanations (albeit made up by ?) for life's mysteries
variety - perhaps not, i don't know
personal growth - all that scripture study and growing 'insight'
external contribution - perhaps; good works and pastoral care
if an activity scores high for someone in at least 3 of the 6 areas it can be considered a compulsion.
So it's easy to imagine how religion can go off the scale for some people