We don't throw drug abusers in prison in this country because we don't have enough jails. By entering rehab, and by staying clean, she can get off with a court-supervised probation.
That's what anybody in her situation would have gotten, and it's what we want as a society anyway. She wasn't hurting anyone except herself, and if this straightens her out, that's a good thing.