Why was marijuana outlawed to begin with?

Slightly off topic but readers of this thread may know the answer - Has legalisation in Colorado led to pardoning of those in prison for possession and distribution?