I've read about a handful of cases where people needed expensive treatments that they couldn't afford so they committed crimes that would get them a short amount of time in jail.
I heard a story about a guy who was employed but didn't have health insurance (I think he was a can driver) and needed heart surgery. He did a bit of research to see what the most minor crime that he could be arrested for was. He goes to a gas station, fills up without paying, drives a couple minutes and waits for the cops to arrest him. He's booked and would've been released without bail but during the booking process he says he fells chest pain. He's taken to the hospital, the confirm his heart issue and he gets bypass surgery on the taxpayer's dime. Probably a bullshit story (wait, something I heard on the internet is untrue!) but you never know.