Here is a lengthy and relatively accessible discussion of how the mechanics work. It’s essentially a byproduct of the language in the Controlled Substances Act and a few procedural tricks. Aka another way the war on drugs has harmed us at a fundamental, moral, and constitutional level.
https://www.yalelawjournal.org/feature/the-constitutionality...