Revenge is a clever justice system invented by nature to discourage committing harm. Had nature not invented revenge, anyone could commit harm without fearing consequences, so there would be no reason to stop. Revenge is the primal justice system that exists since stone age.