dont know where you are getting your numbers. sounds like are confusing revenue and spending. relying on some AI maybe?
US collects about $12Trillion in taxes total (30% ish of GDP), under $2trillion of that is given to the federal government for medicare, medicade and the military, they spend more than $5trillion, which is what they spend on medicare, medicade the military and the interest on the $37Trillion debt they have accumulated spending more than they were given by the states for medicare medicade and the military - mostly bank and insurance fund bailouts to prop up the failed US financial system, adding about $3trillion to the federal debt each year, which is why it has gone from $30trillion at the end of 2022, to $37trillion now.
Getting downvoted because I do my own research instead of believing the latest gormless chatbot, that's new.