In order for a country to perform meaningful R&D, it must produce the industrial goods which it sells to its own people AT HOME. If you export your industrial production, you export just about everything, including the science, technology, research and development that go with it.