Ah, the Just World Hypothesis. "Something bad happens, you must've screwed up somehow. Just look at me, I'm doing fine and I instinctively know that random good-luck had nothing to do with it."
People believe in the witchdoctor's raindance because the alternative is to believe your entire life is at the mercy of the random chance of weather and could be destroyed at any moment. Which is true, but hard to deal with mentally.
JWT is based on whether positive or negative outcomes were "deserved" and the extent to which randomness exists.
In contrast, FAE touches on what you believe motivated an individual to act, and whether it was innate or circumstantial.