You're right to say that life imprisonment is an improvement over execution because some innocent people will be set free. But under the imprisonment system, it is still guaranteed that innocent people will rot in prison until they die.
You can't un-execute the innocent, but you also can't un-rot the innocent who die in prison.
Why is one morally acceptable and the other is not?