Because caveman clans who believed in an afterlife, and believed to be helped by a god, could fight more brave against other caveman clans who didnt believe such things.