Vengeful gods may be the product of complex societies

All powerful religious figures are useful in keeping large populations in check.