That may be part of it but (at least here in the UK) the bigger factor is votes. The increasingly-shrinking (the most recent general election being an exception) voter demographic has a large overlap with the hysterical "lock 'em all up" authoritarian demographic. Legalisation of drugs is political suicide. When the UK gov's drugs advisor advised that drugs should be legal they sacked him.