Very weird that I am so old and have literally never heard this mentioned in a TV show or book or movie or anything.
In four out of five states, if you go to prison, you are literally paying for the time you spend there.
As you can guess, this results in crippling debt as soon as you're released.
The county gets back a fraction of what they hold over your head the rest of your life until you commit suicide(or die naturally and peacefully with the sword of damocles hanging over your head).
$20-$80 a day according to Rutgers.
Counties apparently sue people and employ wage garnishment to get back the money that majority of people obviously cannot pay back.
In Utah, you get charged fees by the day if you've been charged and/or convicted of a misdemeanor. No charge if it's a felony. They figure they'll get their moneys worth if the inmate goes to work at Utah Corrections Industries.