There is a concept called “descending for the sake of ascending.”
One of the reasons people fall from their level is so they can grow even higher when they pick themselves up again. It can be compared to someone who wants to jump high. He first goes back a few steps, so he can have a running start.
People fall, but if they don’t lose hope and try again, they will rise even higher. Accordingly, lows aren’t necessarily a deviation from Hashem’s service. They can be considered a step towards future growth. ~ R’ Elimelech Biderman Shilita