It makes it impossible for criminals to do bad things over and over again. Executing someone permanently stops the worst criminals and means we can all feel safer, as they can't commit any more crimes. If they were in prison they might escape, or be let out for good behaviour.