“This is not philosophy; this is physics.” – A quote widely attributed to Albert Einstein, who may or may not have said it about attracting energy or any other topic. Regardless of who said it, the concept applies here.
You attract the kind of energy you send out
Whatever kind of energy you send out into the world tends to influence the kind of energy you attract back. Although good people experience bad things, and bad people experience good things, you receive what you emotionally believe to be true.
Emotionally convinced: a charged phrase, to be sure. You must strongly persuade yourself of the truth of something, or at the least of its possibility, and you must be emotionally invested in it. Additionally, good people send out energies of fear, dread, anxiety, and the like as they fret about the future, and often they attract their worst fears. Worse yet, when they only get something bad instead of something awful, they often feel happy and relieved
Expect the good
But it doesn’t have to be this way. Good things can happen to good people, and those good things can happen all the time. It really comes down to expectation. Drop the chains of guilt and a sense of unworthiness. You deserve to be happy. Moreover, by sending out positive energy and uplifting thoughts, you raise the energies around you, which benefits other people as well as you. Then you will attract energies that serve you better.
Finally, with the strength of your deepest being, learn to expect that good things come your way always and you deserve to have them. This isn’t greed; you do not take good things away from someone else to have them yourself. It’s not a zero sum game.
Like attracts like
Be the energy you want to attract. Like attracts like.
This is not philosophy. This is physics.