Human spaceflight is more or less the marketing budget or loss leader for all the scientific work they do. It gets the public and Congress behind funding the important stuff.
If that is true, I am not sure it is effective as it was in the past. From my viewpoint, the public doesn’t care much and space flight has been normalized.