I think a lot of more progressive(?) places let drug users off because it's more or less a victimless crime (no one has to be harmed in making and distributing drugs, though some producers certainly do that, but so does any capitalistic system; the cartels aren't significantly worse than buying from Apple) and they really just need help.
Child pornography is never a victimless crime.