There would be no real justice if someone convicted of a serious crime is simply taken of life immediately
Their beliefs and feelings on their actions remain the same until the moment of their death. A prison sentencing allows time to realise the effects of their actions.