Self-dependence is more of a state-level concern. If the state values self-dependence they can subsidize and otherwise incentivise types of agriculture they prefer.
Outright prohibiting a crop obviously also serves that goal but it also weakens the states economy and could cause tensions if farmers lose profits.
And there are uses for opium besides street drugs. Opiates are used a lot in medicine.