And what about the laws and treaties that enable enacted by the indian government? If they wanted to they could do what the soviet union did and impose borders controls to prevent indian engineers from escaping india.
That's when your US-based firms step in and say "stop or we're tanking your economy".