When I was a kid, all drugs were illegal, at least to me as a minor. My parents had the alcohol is bad and cigarettes are bad talks with me but even if I wanted to drink and smoke, it was hard to access until I got closer to the age where it was allowed anyway.
When I was a kid, all drugs were illegal to me too. Yet my parents had cigarettes, coffee, alcohol, and weed in the house. Me and my siblings didn't touch them.
Kids will mostly do what they see others do. This makes drugs less difficult to dissuade. It makes phones and screens particularly pernicious. "do as I say, not as I do" is not always good enough.
I have kids. They watch movies with us, and the nanny gives them more screen time than I'd like. I don't have to talk to them about drugs because nobody is handing my kids drugs. But screens are everywhere and I use them all the time, sadly.