Happy people recognise these sorts of facts and go on anyway. Life includes unfairness and injustice. Although we embrace truths, life will not always be fair. Neither should we expect it to always be so in some childish way. We are sometimes controlled by forces we cannot master, such as the wind and the sea, or the domino effect of someone else's volition.
Good things happen to bad people and vice versa.
The honest are defrauded and felons walk free to enjoys their spoils. This is not only the way things are, it is the way things will be. We must grow up and get used to it while doing the best we can, for this is the source our individual perfection as we serve others and find ourselves in such service, as well as in our quiet moments. Both are critical to our capacity for joyfulness. Happy people recognise all this and more.