People disapprove of the death penalty because of the chance innocent men get killed. You can’t unkill someone. Thus the most logical solution is to contain them in a place where they can’t hurt anybody. You’re not calling out a contradiction, not everyone is a utilitarian. The purpose is to keep people on the street safe, how you deal with the criminal is secondary.