Also, putting remorseless killers in prison also represents a threat to other prisoners. We haven't figured out how to prevent that yet.
Should capital punishment be more strictly controlled with a massively high barrier to use, yes, but there are solid reasons to use it.