Here is a great article about correctly framing an important question of our day - How can a good and sovereign God allow such evil in the world? by Joey Newton. I appreciate Joey's reframing of the question to "How can a holy God do good to us who are evil?"
He states a great presupposition necessary for answering this question by saying
God’s wisdom exceeds our own. It is impossible to answer all the why questions, especially in specific cases of suffering. We just don’t know, but our good God does. “The secret things belong to the LORD our God, but the things revealed belong to us” (Deut. 29:29). It is important we don’t get caught up in what we can’t answer and instead focus on what God has revealed. God’s primary purpose in creation, in the universe, is His own glory (Ps. 19:1; Is. 43:7). This is hard for some to stomach, but it sets the foundation to understand the answer to why. If evil exists, then He must intend, somehow, to glorify Himself by it.