Events happen to a person because there is a test situation or because of the acquisition of perfection for the World to Come. This world is a place of opportunity where good and bad mix; the World to Come can only be good. Why do righteous people suffer in this world? And why do evil people seem to succeed and receive all good? People suffer in this world for several reasons; either as punishment or to attone for something that the person did. It is all suffering coming out of love.