Why was meth invented?

by octopusroulette

I understand how, when, and where meth was invented, but my question is, why? Was it made because the inventor wanted to be high or stay up all night? Or was it some sort of scientific accident?

If I'm posting this in the wrong spot please let me know.

Searocksandtrees

Hiya, this sub is fine. It may be worth x-posting to /r/AskScience too though, presumably in the Chemistry (or even Medicine?) category