Answer:
Publicity and Territorial rights.
Step-by-step explanation:
It shows the world they are technologically advanced enough to fly into space. Only powerful and profitable countries can do this.
All the countries know that eventually, technology will advance to a sufficient point where colonies on other moons/planets will be possible. By building a space program they put themselves on the front lines to claim entire worlds/resources in their name.