Illegal drug dealers have very little incentive not to sell to underage kids, while legal ones have a license and livelihood that could be taken away.
Of course legal drugs always have “cool” adults willing to be straw purchasers for underage kids. It’s complicated, and the relationship between the law and underage usage are non linear.