History, mainly. There is absolutely no logical rationale for the one to be legal and the other to be prohibited, other than the fact that historically alcohol was the drug of choice for the powerful and marijuana was the drug of choice for the powerless.
Ah, I see, it was a class thing. Big Brother watching out for us!