Compared to being on the street and having free reign to acquire and use God-only-knows-what to get high, being in jail is safer. And more importantly, maybe it'll send a wakeup call, be a rock bottom, to someone who was in denial about it beforehand. Even if they do have something bad happen in jail. "Hmmm....maybe my addiction put me here?"