I find the "Why do bad things happen to good people" question tricky, but these are my thoughts on it so far. I'm sure we can all point to a time in our life or an experience that felt unjust and cruel.
I'm not a theologian or a student of applogetics. My faith is simple and based on a relationship with God through Jesus, rather than on ritual or religion.
I believe that God is a being that is order of magnitudes greater than humankind and for that reason there will always be things that don't make sense to us during our life on earth. In the same way that creatures like dogs, cats or birds cannot perceive things through our lens.
I also think there are many times we point the finger at God or see evidence for a lack of God without considering humnakind's role. We have free will and we are told to love one another, yet we love the self. We idolise it.
Imagine if humanity truly loved each other as we have been told to. If all of the money, effort, time and resource was put into loving one another instead of the self. Into finding cures instead of funding wars into early detection and protection against natural disasters instead of building mansions, private jets and vanity projects, into ensuring society was fair and equal.
I think i read a while ago that Elon Musk had the oppertunity to end world hunger but he chose to fly another ego rocket into space. It is easy to point the finger at the elite, but we all do this in smaller ways.
We want the new clothes or the must have gadget or the flashier car or the insta-worthy photo. So we buy the stuff made in sweatshops, we book the flight and push away any thoughts of rising sea levels or pollution, we consume more to impress others and buoy up the self rather than out of genuine need, we don't care what hideous industry our pension and investments are funding so long as it's making good returns for us, we want a great variety of foods available to us year round and cheaply and we often don't care where the food has come from or if someone else needs it more than us. We exploit, we suppress those weaker than us.
Then when we hear of children dying of hunger or in horrible working conditions or of some sort of illness we shake our fist at God without looking at what resources humankind has had and what we have chosen to do with them in disobedience to the command to "love one another" (the second most important commandment).