God states that the wages of sin is death.
So, could we reframe this to : Capital punishment for someone who fails God? That would mean the perpetrator of the sin would be facing capital punishment. What would the life of someone else have to do with it?
Even if that was some rule, it is still God that established it. Considering that every miracles performed in the past have violated the rules of physics also established by God, why would he not be able to violate that rule as well?