You're missing that legalization breaks criminal monopolies, let's people get help more easily if they need it, and removed a mechanism where law enforcement can basically make someone or some group they don't like a criminal, by making illegal something that most people do.