This is true also because Steve Jobs speaks about it in his Stanford speech, but it's a rare event that you cannot know in advance. No company fires the CEO to let him learn more and then come back to rescue the company.
Moreover Apple went on the verge of bankruptcy before Steve Jobs came back. So it was still a bad decision for the board to fire him.