It does not. To quote Wikipedia [0]:
> employees are promoted based on their success in previous jobs until they reach a level at which they are no longer competent, as skills in one job do not necessarily translate to another.
That does not translate to or imply that:
> The peter principle assumes that competence in one role automatically translates to less competence in a higher role.
It is saying you will keep getting promoted until you are incompetent. You can be more competent at a higher role without violating the Peter Principle. That would be another point at which you would be promoted working your way towards incompetence. The Peter Principle just says you were competent at each step in the ladder until you got to the point you weren't promoted anymore because you are incompetent at it.
You're then take another logical leap in saying that promotion to the next level means you are competent at every job on every career path that could get you to that level. The Peter Principle only talks about your own career path.
[0]: https://en.wikipedia.org/wiki/Peter_principle