“Free will.”
Even with free will, a good design would not chose to perform evil acts.
I guess you’ll have to take that up with the Creator.