Production of bulk chemicals is way cheaper than production of pharmaceutical grade drugs. GMP (good manufacturing processes) is a collection of a shit-ton of regulations around testing starting materials, storage requirements, analytical analysis, impurity limits, shelf life, etc).