These evils may help us develop virtues that could not exist if God eliminated every instance of suffering. For example, it’s impossible for God to make someone be courageous if he is not in danger. They might also be necessary for us to live in a predictable world where God doesn’t intervene every five seconds to protect us from pain.