This. Most companies pay lip service to internal mobility, but I still see managers trying to talk people out of it (presumably so they don't have to hire and ramp up a replacement).
And that ends up being self-defeating over the long term, because oftentimes the developer will quit the company entirely if their requests for internal transfers are stymied for too long.