I get what you’re saying, but it’s not a black and white situation. Drugs and porn are not the same category. One will have life-changing effects, the other usually won’t.
Plus, parents have the ability to mostly control a child’s access to inappropriate content, as well as tobacco shops.
It applies in the real world and the Internet on a case by case basis depending on the inherent dangers of the content.