Why was marijuana outlawed to begin with?

I don’t doubt the popular theories but I always add that it’s probable the industrial barons of the time were well aware of the effects of cannabis consumption and saw it as an affront to their God: Productivity