God said: I send people adversity in this life to teach them that this imperfect world is passing away, and this life is not their goal. I am their goal. – St. Catherine of Siena
If spiritual mastery (‘theosis’) is one of the main goals, then there are going to be experiences in life that can move us towards that mastery. If spiritual mastery is roughly cumulative (you have to learn a before moving on to b, as in many domains), then it would make sense that you keep getting a similar opportunity to learn something, until you gain the relevant skills. (Think Groundhog Day, where Phil experiences the same day over and over until he transforms, or moves towards theosis.)
Now consider this talk from Sal Khan, in which he discusses mastery-based learning. His basic point, using mathematics as the main example, is that in certain domains learning is cumulative, and if you want to master it, you can’t just get 75% of the material at level 1, and so on. If that happens, you will soon reach a block before you achieve mastery. Instead, you need to get near 100% at each level. The basic idea is in cumulative domains, you are greatly benefited by going again and again until you get near 100%, then moving to the next level. (Therefore, the main method of learning in most schools is basically flawed.)
If spiritual mastery is similar in ways to mathematics, and God is indeed sending situations to help in theosis (as St. Catherine of Siena claims), then you would expect that people will experience a certain situation until they get the relevant spiritual skills, just as a wise teacher would do when it comes to any cumulative domain.
So, the basic question when encountering a situation is ‘What can I learn from this?’ and ‘What transformation can I make on the inside, that will make me better?’ Often, once you change, things change.