I didn't say anything about NASA's uncrewed programs, only about their crewed programs. There is no fundamental reason why the HST had to be launched on the shuttle, although it was. It was repaired by spacewalking astronauts, but again, there's no fundamental reason that it had to be that way. In an alternate history where we (god forbid!) didn't have barcodes and crewed spaceflight hadn't been a government monopoly in the US from 1961 to 2011, there still could have been an HST. It could have been launched by NASA or by some other government or by a private contractor.
I'm not proposing that all scientific research be left up to private enterprise, just that crewed spaceflight should not be a pork-barrel propaganda exercise run by a government monopoly.