The state is responsible for all medical care of "persons in custody".  Why do you think the Troopers sit outside the ER and arrest them after treatment?  The cost to the state from lawsuits over these deaths far outweigh the medical cost required for detox.