Some percentage of that spending does turn into actual economic investments in those local towns. Infrastructure gets built because of it. Homes are built. Shops are built. Tax revenues get collected to build schools to educate new generations of citizens. New technologies are made, new industries grown, etc. So even with your specific definition of investment that spending did spur some of it. Land is improved. Positive productivity, economic exports.
> An investment is something that provides positive return over time
That's one definition, implying it will just continue to give a return. Like dividends. Another would be "an act of devoting time, effort, or energy to a particular undertaking with the expectation of a worthwhile result." A definition on Wikipedia is "commitment of resources to achieve later benefits". All the spending is investing in knowledge of space, material science, biology, and more, hopefully for a worthwhile result.
One could say, "a student invested a lot of time studying for their sixth-grade math exam". Very much an acceptable statement to make, I don't think most would argue it is improper English. Is that strongly tied to positive productivity and economic exports? Did passing that test directly affect the GDP of the country?
Either way, the people I'm replying to weren't trying to debate the semantic differences between "investing" and "spending", and that wasn't really my main point. I do agree there are differences in this, but that can often be a matter of opinion and perspective.