Hello swb64, good question.
It does sometimes seem that way. But who are we to decide who is a bad person and how good things happen?
Say if I have a horrible boss at work. Each week we both play the lottery. Then one week my boss leaves. He won the Jackpot. I didn't.
Is this a good thing happening to a bad person?
If after years of put downs and being overlooked I now have the chance to shine and become the departments new boss. I get a good payrise, my former torturer is no longer part of my life and I have the opportunity to be the boss I would have liked.
So while winning the lottery may have been my dream to escape that bad boss. His winning brings me a good result too. If I take a positive view. Of course that may not happen if I allow sourness and bitterness at his good to poison other peoples views of me.
In this example the good or bad is not really important, it is more my own reaction to how I view things. Seize opportunity with a good heart or curse and blame. The choice is ours.