Substance abuse and addiction tends to originate from either a variety of sociological factors, or treatment (self or prescribed). A very large number of addicts are simply self medicating for one reason or another. Or at least they started off that way.
Even if society determines addiction and substance usage to be criminal, it's a victimless crime and a waste of resources.