So, this is only true in a limited set of circumstances.
If the public doesn't have faith that death is always (or almost always) given justly, then it doesn't work as a deterrent. It's like having an unpredictable abusive parent, stern parenting helps a child know how they should behave, erratic u...