They do. And they have branch offices as well, even in other countries. They make the choice to establish such offices, form local companies to do so, qualify to do business in foreign jurisdictions, pay taxes, etc. The point is that it is the company making the business decision to do so, not random employees who decide they'd like to live in Kerala while earning US salaries.