It’s actually not quite an exception, because cocaine is a Schedule II drug (can be prescribed as a vasoconstrictor or topical anesthetic) and the Maywood plant is the only facility licensed to produce pharmaceutical grade cocaine in the US.
So the coca leaf extract they sell to Coca-Cola is technically a byproduct.