Like with manufacturing in China, allowing your competitor countries to build up expertise means at some point it become difficult to regain top place. And whilst bulk of the profits may flow back to the USA at present, may not always be the case.
It’s not like it’s been hidden, all USA needs to do is reduce the gap so financially there is no incentive to go abroad.
Great for other countries though.