[I]n most hierarchies, super-competence is more objectionable than incompetence.
Ordinary incompetence, as we have seen, is no cause for dismissal: it is simply a bar to promotion. Super-competence often leads to dismissal, because it disrupts the hierarchy, and thereby violates the first commandment of hierarchal life: the hierarchy must be preserved.
…
Employees in the two extreme classes—the super-competent and the super-incompetent—are alike subject to dismissal. They are usually fired soon after being hired, for the same reason: that they tend to disrupt the hierarchy.
Peter, Laurence J. and Hull, Raymond. The Peter Principle. Buccaneer Books, 1969. p. 45-6
Related: Whose agenda are you devoted to?