That's a standard use of the term "investment" in the macroeconomic sense of exchanging money to get people to do work so they can pay other people to do work for them.
Ita because paying US people for that work is better for the personal development of (otherwise underemployed) US people than paying non-US people.