Maňo’s and Xygalatas‘ fieldwork suggests that perceived ritual efficacy could be a key cognitive factor at play. They suggest that people seek rituals that they consider appropriate (in terms of their structure and focus) and proportionate (in terms of their costs) to their needs and expectations. Reporting six representative cases, the authors demonstrate this almost contractual logic of ritual performance on the concept of promise that is quintessential to the biggest religious festivals of three Hindu communities in Mauritius.
You can find the paper here:
https://www.sav.sk/journals/uploads/06301943SN.2022.2.18.pdf