Prior to justice-by-committee a lot of societies didn't have jails. Either what you did was so bad we need to end your life or you need to find a way to repay it even if you have to work for free as a slave to earn the money.
I don't think that would work today, but what we have today doesn't work either.
I don't think that would work today, but what we have today doesn't work either.