From the Hindu perspective I would say purposes, not purpose. It's multifaceted. At any given day at the Hindu temple, you will see camaraderie, calming, thankfulness, celebration of events, beseeching for help with a specific problem, inner communion with the divine, just to cheer up, wiping out a problem, clarifying your thoughts, and likely several more purposes I can't remember just now. After all, I was at temple just now, and the sannidhya (darshan, energy) has had a calming non-intellectual effect.