system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: If someone is on death row and has a medical issue causing them the die sooner than their execution date, why would they be given medical help?

Morally I kind of understand, but financially and logically it does not make sense to me.
gpt
Up until the moment the executioner turns the key, the state must provide care for their convicted felons.  The logic behind this is that up until that last moment, the execution is not 100% certain.  There are years of appeals, and the governor might still pardon the convicted at the last moment.  Also, allowing someone to die from a disease without treatment can be considered as cruel and unusual punishment.