God allows evil to exist so that humans can have free will and develop into moral people. In order to be morally good in a meaningful way, a person must have the possibility of choosing evil.