Legalization with regulation tends to make it harder to obtain the product illegally. It's easier for kids in most of the US to get cannabis than it is for them to get alcohol, for example, because the legal, regulated market for alcohol makes selling it illegally largely unprofitable and therefore a much less attractive practice to engage in. This despite the far greater general availability of alcohol.