According to Jainism, the purpose of nonviolence is not because it is a commandment of a God or any other supreme being.
Another aspect that provides a rationale to the avoidance of hiṃsā is that, any acts of himsā results in himsā to self.