Are you referring to Jesus? I don’t know about this specific case, but you seem to be pointing there. If so, that punishment concerned eternal life. Civil authorities have been instituted by God to restrain evil in the present age. You seem a bit vague, so maybe I went off the rails...
The reason we execute criminals is because the crimes they have performed are so heinous that there is absolutely NO hope for ANY sort of “rehabilitation” as they have proven themselves as such a bad cancer to society that it requires a immediate cutting out and disposal.
See my post #56.