The simple answer is that God didn't create evil.
Everything God created is good.
Evil is not extant. Evil doesn't exist in and of itself.
Evil is the absence of good, just as cold is the absence of heat, and darkness is the absence of light.
How do you know?
Men know right from wrong and when they violate it, rather than abandoning the concept, they rationalize that they didn't violate it at all. Men do not do evil for the sake of evil. They do evil for the sake of their own good. A bad man has no clue that he is bad. Only a good man knows just how bad he is. It's the dunning effect, so to speak.
The reality is that good and evil are human constructs, but the underlying values that define them are universal. Virtue is the greatest organizing principle. It isn't surprising that relationships or societies which behave with virtue like honesty, humility, charity, thankfulness, courage, integrity, etc, have order and harmony. Just as it isn't surprising that societies or relationships which practice behaviors devoid of virtue like dishonesty, arrogance, selfishness, greed, thanklessness, cowardice, etc are disordered and chaotic. So while men think they are behaving with virtue, it is their behaviors and outcomes that tell the real story. But the surprising thing is that everyone believes they are good. No one will acknowledge that they are bad. No one says, the hell with your universal code of common decency. They all argue that they are being decent and good.
If God had made evil then we would see evil being done for the sake of evil. This we do not see.