My view on this is that old tech gets outsourced to make room for new tech. That or the company is struggling financially and is not worth working at anyway.
Does that have to be the case though? Companies like Deel and Remote seem to be making it easy to directly hire elite engineers in other countries.
Additionally there are plenty of fresh YC startups that have all engineering offshore. Additionally most unicorns have engineering teams in other countries they employ directly, not through third parties.
Hiring != outsourcing. Indeed you are right re hiring.