The money is not "burned up" - it is spent right here on Earth. It's paid to extremely skilled engineers, technicians and scientists.
The technology developed for doing such a difficult task will inevitably benefit all of humanity. It did so for Apollo. It will again in the future.
https://launiusr.wordpress.com/2012/02/08/why-explore-space-...