What is the real gain? Resources. There are a ton of resources up there.
Knowledge. A lot of things we have today we have because of our previous space race. But the real reason... It is virtually free. The budget is almost 0 compared to everything else the government does.