This is really no surprise, given the U.S. national debt of $34 trillion and rising fast. Just the interest payments on that debt would fund NASA and much more.
Basically this is a political decision. Do we value NASA missions more or less than the other things we are spending tax money on?
So, that gets us into political discussions, which are not welcome on this forum. I'll try to keep it as examples of choices, but it will inevitably lead to political disagreements.
Specifically, the NASA 2024 budget approved by Congress is $24.875 billion. It had asked for $27.2 billion, but that is not all it would need to do the missions it already has committed to performing.
The proposed "forgiveness" of college tuition loans is estimated to cost $1.6 trillion for all loans, and if only done for loans up to $50,000 per borrower, would "only" cost about $1 trillion. Limiting loan forgiveness to $10,000 each, would cost about $373 billion.
Similar increases in the national debt were invoked to "stimulate the economy" during the COVID pandemic.
Interest payment on the U.S. national debt was $658 billion in 2023. The interest costs for 2024 will be substantially higher, both because the debt is increasing and because the government had to raise interest rates by a large amount. Expected totals are estimated at about $1 trillion for this year.
To quote a politician whom I will not name: "Show me your budget, and I’ll tell you what you value."