These days, the word ‘evil’ has religious connotations. It’s tied up with morality and transgressions against the will of a divine being. But in its original Old English it meant anything that was simply bad, vicious or cruel.
Assuming we stick to this broader non-religious definition – that evil involves acting in a malevolent way – it’s reasonable to ask why it came into existence. We know that humans evolved from apes and, ultimately, from much simpler animals. That means we get many of our behaviours from our animal ancestors.