There are two reasons why life with hard labor is a better solution than the death penalty:
-
If at any point you discover the person is innocent, you can free them and at least ATTEMPT restitution. If you've killed them then that's impossible.
-
It's a better deterrent since people are more scared of it.
The only advantage the death penalty MIGHT have is being cheaper. And I'm not even sure about that.