Those things are not comparable. We imprison people to safeguard society and most addicts are harmless to society. There is no rapist who is harmless to society.
People who think addicts are irredeemably evil are just irredeemably bigoted and hard of thinking. We should make that a crime.