It costs more to execute then incarcerate.
Killing someone for being violent is quite a bit beyond an eye for an eye.