What your asking is a perfectlly legitimate question, and one that believers since Job have asked. If God is good, why do bad things happen?
Too many believers just say, “It’s part of Gods plan” or “Have faith”. Those answers are not good enough.
One thing that is crucial to remember is that God gave humans free will. We can choose to do good, or do evil. While free will does make some people do evil, it also makes some people do good.
Also something to remember-Evil doers will pay, maybe not in this world, but certianly in the next.
I don’t know if these answers will help. Sometimes they don’t help me either, and I wonder what God is thinking. I know, intellectually, that I’m not him. Does that help me emotionally? No. But it is a start.
God Bless.
Tim