Earlier quoted context omitted.
Personally, I agree with you that the whole program is useless. The point I'm trying to make with this analogy is that the effort is internally incoherent even if you grant the premise that moon landings and building Gateway are desirable outcomes.
What do you think is useful for NASA to do? Do you think any form of spaceflight is useful ?
There were good reasons why people were interested in sending people into space in the early days of space exploration. Before automated systems were sufficiently developed, manned programs looked like the best choice. But once automated systems became sufficiently advanced, it was clear that they were the way to go.
You can see this when it comes to reconnaissance satellites - both the U.S. (with the uncompleted Manned Orbital Laboratory) and the USSR (with Almaz, which was completed) began with the idea of having manned reconnaissance satellites, but as time progressed they realized autonomous ones were better.
If we were sticking people in reconnaissance satellites just for the sake of sticking them in reconnaissance satellites today, it would obviously be farcical. But NASA’s manned space program has being doing the equivalent for decades - blowing a huge part of their budget on sending people into space just for the sake of sending them into space (by the 80’s this had reached the point where they had a program of sending teachers into space for the purpose of having them come back and tell students how cool it was to go to space). But since NASA has more open ended objectives than the military, it’s easier to hide the fact that this isn’t accomplishing much, or that these programs have diverted so much from many of NASA’s core objectives.