Why do bad things happen to good people?????
That question makes three assumptions.
1] We know that something is "bad".
2] We know that a person is good.
3] That human beings can understand Divine judgment.
What looks bad could very well be good.
This person could possibly NOT be so good.
Hashem's judgment is beyond human comprehension. [See Sefer Iyov].