(b) It's not. Killing people that are evil is fine. Killing babies is wrong. You are intentionally simplifying the moral argument here to "killing people is wrong."
Maybe don't make prisons so awful that they constitute torture? That's very much a thing that we know how to do.
>Killing people that are evil is fine.
Who gets to decide what is evil? What happens when the definition of evil changes? Practically every genocide in history has been justified by that logic - they are evil, therefore we are justified in killing them. Other than vengeance, there is little benefit to state-sanctioned killing for the purposes of punishment; all state-sanctioned killing carries the risk of justifying other kinds of state-sanctioned killing, by removing the simple and clear moral foundation of what a legitimate state can or cannot do.
There are many examples of accused murderers who received fair trials, were convicted, and yet were still innocent.
(a) Sometimes the wrong people get convicted. In this context, irreversible punishments suck.
(b) “We’re going to kill you because killing people is wrong” is a weird look.