Sorry to be the bearer of bad news to you. But US itself pursued globalization policies to cut the influence of USSR during the cold war. Globalization was a US political project gone crazy during the internet years.
In fact no one reaped more benefits at the world stage than US.
Even as we speaking now. US has more to benefit from H1-B and other Visa systems. You don't really want all these highly trained brains from India to go to other places.
>>how protectionist and nationalist a place like India is.
India has let in far more foreign business in the recent past than US ever will.
If you are a US business making insane tens of billions worth profits selling stuff in India. Its really not a lot to ask the company in question to hire a few Indians to run their operations in India.
So long as we have countries as political units, this will be the reason. Countries are by and large semi-closed systems in terms of economics, do it would make sense we protect our own economy, just like the majority of big economies do.
It's odd that people complain about US "protectionism" but on the other hand complain about US imperialism while also ignoring how protectionist and nationalist a place like India is.