The thing is, coke is slightly more dangerous, but quite a lot more physically addictive. It's hard to quit once that holds, though it's relatively easy to keep steady dosage as the euphoric effect is short lived.
Unlike cocaine, opiates would hurt productivity in general.
There was a time when many people were addicted in China to opium...
Wars were and are fought over best growing grounds of many drugs.