The Balinese live by their philosophy of Tri Hita Karana - the three causes of prosperity. The three causes referred to in the principle are:
Harmony with God
Harmony among people
Harmony with nature
I believe that rituals and traditions serve many purpose in maintaining the wellbeing of the mind for the individual as well as the community. Many research have been revealing the neurophysiology benefits of praying, meditation and spiritual gatherings, such as improvement in concentration, increase in dopamine for feeling happy and hopeful, and activation of the prefront cortex with resulting improvement in executive functions. The list goes on and there is a lot to connect. One thing I can hypothesise is that the social aspects of Balinese spiritual gatherings can certainly strengthen the prosocial bonds of the community - the community of God, people and nature.