These events occurred primarily because of the Greek belief of heroes possessing special abilities that lingered locally even when he died, and it was believed that offerings and worship towards this hero would allow living cult members to tap into this power.
These events were predominantly influenced by the Greek idea that heroes continued to possess supernatural capabilities even after death, and it was thought that dedicating sacrifices and worship to them would enable living adherents to utilize those abilities.