I know of a situation where a person who has had multiple arrests in the past was arrested and charged with felony burglary, escape from detention, possession of controlled substance, possession of drug paraphernalia. This person was approved for "drug court" and all charges were dismissed contingent on completing "drug court." WTF?!?! So basically I someone can burglarize someplace and as long as he has some pills in his pocket he get to go to rehab and all is forgiven?
In Oklahoma, drug court is an alternative for non-violent offenders. Some counties can limit eligibility to certain non-violent offenses. Also, if the underlying arrest involves trafficking, then they aren't eligible. It's basically probation with a LOT of conditions, a LOT of counseling (group and individual), and a LOT of supervision, including multiple drug screenings, often twice a week. Offenders can't live in a residence where drugs or alcohol are present by anyone, not even parents or roommates.
It also comes down to cost. Per the Ok. Dept. of Mental Health and Substance Abuse Services- "The average annual cost of incarceration in the Oklahoma Department of Corrections is $19,000 per person, compared with the average annual per person cost for drug court participation of $5,000." With the state's budget woes, you can expect to see more of this in the future.
I would imagine the court ordered a drug/alcohol abuse assessment which determined that substance abuse was a significant factor in the crimes committed. Personally, I believe this individual you speak of had a pretty good attorney to get him into drug court with the escape from detention charge.