My limited understanding of the history was that during the patent medicine era, medicines had proprietary formulas and varying compositions. For example, many formulas had cannabis extract, others heroin. The regulation therefore was done for medical purposes of purity.