I think the issue could also be this:
- Tech or engineering company hires foreign resident engineer.
- That engineer works their way up in the company to a position where they are in control of hiring.
- They hire more people like them.
We used to accuse start-ups for hiring for cultural fit (people like them) which looked like sexism and ageism. Same thing, different group.