What a deeply stupid question! Of course not. But it was a directed, well thought out, course of behavior designed to bring about some desired outcome. The motivation was clearly one of human compassion and a desire to improve the condition of others.
Or do you think he just did it for kicks?
He was inspired by other delusional freaks like him.
Gandhi coined the term Satyagraha to describe his philosophy of nonviolent resistance. The concept was influenced by the notion of ahimsa in the Hindu Upanishads and the tenets of Jainism, as well as various theorists of nonviolent resistance and nonresistance including Jesus (particularly the Sermon on the Mount), the Imam Hussein, Leo Tolstoy (particularly The Kingdom of God Is Within You), John Ruskin (particularly Unto This Last), and Henry David Thoreau (particularly Civil Disobedience)