Salary isn't the only thing people covet. Titles and responsibilities are also coveted since they increase future earning potential. When people don't feel that they can get them, they leave.
Neurotypical humans all crave social status. The higher expected future compensation is a nice bonus, but it's the status that draws people to higher titles.