It could be that a life taking plague had broke in the village or perhaps they were facing poverty leading to death. Perhaps they imputed blame of all this on a witch. And that is why they took to this cave to perform a ritual that they believed would save them from dark forces responsible for their despair.