Because he was, in the language of the time, on fire for Jesus. The nickname was affectionate rather than cruel — it captured the sheer energy Dwight L. Moody brought to his preaching.
Moody became one of the best-known evangelists of the nineteenth century, holding enormous revival campaigns on both sides of the Atlantic and later founding schools and a publishing arm. To onlookers who found his enthusiasm excessive, "Crazy Moody" was the obvious label, and it stuck.