I don't think the plan is to rehabilitate them. I think the plan is to mitigate the consequences of addicts taking harmful actions towards others (robbery, assault) in order to get their fix. The theory is it's cheaper and safer to society to just give addicts what they need so their addiction doesn't harm others.