That money doesn't disappear from the economy. It pays for materials and jobs and work that gets done. The only financial value that is "lost" to the planet is the materials value of the probe itself and the contents thereof, which once you reduce them to raw mineral value is a mere few thousand dollars at worst.
Space missions generate far more value than they cost, also. It takes brilliant minds solving unique problems as a group and once that is done, the information and knowledge generated do not simply sit in a vault somewhere but are then appropriated by other people for terranean uses, most famously like the microwave oven, but also all of the things this this list:
Space missions generate far more value than they cost, also. It takes brilliant minds solving unique problems as a group and once that is done, the information and knowledge generated do not simply sit in a vault somewhere but are then appropriated by other people for terranean uses, most famously like the microwave oven, but also all of the things this this list:
https://www.philips.com/c-w/malegrooming/philips-space/space...
And undoubtedly many more.