Agreed, that could be argued as well, however, a longer prison sentence doesn't violate the inherent dignity of a human being in the same way killing him does. There's a big difference between being alive and being dead, and that's where the Church (at least) draws the line in its teaching.
The Church has never held that capital punishment, in itself, violates the inherent dignity of a human being.