What do you mean? It's well-known fact that if you want to increase your salary, you need to change employer.
Finally, many companies like to have a certain amount of churn. Bringing in fresh people helps keep the skillsets up-to-date since new employees bring the stuff they learned from their previous employers. If you just have the same staff for decades, they get stagnant.