drinking ages, drink driving, car reliability tests, etc.
These aren't the same. Drinking ages don't effect other people.
Drink driving does.
Car reliability does.
Smoking weed or snorting coke does not.
There is usually some societal impact from having drugs legal but the cost of making it illegal typically far outweighs the negatives - war on drugs, cartels, mass incarceration etc.