I think the main reason why alcohol was legal and legalized, while pot hasn't been, is because fewer people smoke pot.
While there was a period of alcohol prohibition, largely due to widespread drunkenness, and the reaction to it, this didn't last too long. Drinking was far too popular.
Tobacco has been kept legal by lobbying by tobacco companies.