Your company is profitable but has slow organic growth in revenue/profit (single or low double digits). Everybody has more work on the table than is actually doable. To keep up with demand, you can hire sporadically one person in this department one in that... If you're numbers are good, maybe you can hire in the single digits per year.
Since salaries (especially in the tech sector) are rising much faster per year than your growth or inflation for that matter, you must pay much more to the new hires. This creates a salary gap in your team and leaves also less money for yearly salary adjustments for existing employees. Also since I hire only few per year, i cannot offer a meaningful Management career path, nor can i promote every Dev to a architect or principal. After all, to keep the business running, I need devs that do Dev work.
In the current artificially inflated tech market (thanks to easy money), if I job hop i can increase my pay by 20%. However which normal company is able to regularly increase the salaries of all their employees by that percentage and grow head count? Impossible.