It costs more to keep the death penalty that not have it because of appeals.

Life imprisonment is worse than a death penalty and it also is helpful if they discover the prisoner never committed the crime afterwards.