For some reason, there are a lot of managers who have budget but are denied headcount by HR, which forces them to work with contractors. Don't ask me why that is. A lot of processes in old corporations make very little sense in the way you would expect common sense to play out.
And I have witnessed a case where simply removing "one senior engineer who has worked on this particular software for years and therefore knows his way around it" was a key part of finally getting that software on track, as he was providing literally negative value.
Also, relying on particular single people who "know their way around" some code is an organizational smell - if you have such a dependency then that's a management problem/business risk that needs to be fixed. You do need shared ownership and people who can replace each other, and (except for the very short term) a better engineer will be more productive than a worse engineer who has been stuck on maintaining that code for years.