Historically, governments "invested in" (in some sense) implements of defense and offense long before there was any reasonable hope of visiting space.