Human spacefaring has little utility for the price, especially compared to things like military or commercial satellites, but what it does do is dramatically demonstrate wealth, organization, and technical competence. Throw in the fact that early space rockets were often literally the same as military rockets, and you have an excellent show of raw power that demands to be taken seriously.