Well, normally execution is looked at as a seemingly simple form of punishment. If you kill someone, you get killed yourself. But what if you killed two people? When they invented the death sentence, they didn't think through the actual punishment properly, they just wanted to rid the Earth of a horrid soul.