You cope by letting them know you are moving positions for more pay and see if they counter offer. The counter offer - if it happens - is low ball. It’s easy enough to move around in the company if your skill set is varied. I don’t stay in positions longer than around 2 years max.
It’s a d-mb that wind stream does this. The people who just want comfortable work in something they know very well / are skilled in look for new jobs to earn money or leave the company. They take their experience with them and you get a newb in their place. Fast forward a couple years and if they are ‘good’ they are gone and you start over. #winning