It happens o. I have been elevated to head of department after two years over someone who has been 4 years in the organization. Just that I and the guy were already friends, so it didn't affect us.
Yes, that is one way to motivate workers too. It rarely happens, the head of the department comes from a junior staff. Senior employees with achievements are prioritized over junior employees with achievements.