The number you’re using is deceptive. You’re citing the Dept. of Defense’s (mandatory) budget, as if that is all the funding that goes to the military. It is not. After mandatory spending (DoD mandatory funds that you cite, social security, medicare, Medicare, interest…) about 25% of the budget is left for discretionary spending… BUT, nearly half of discretionary spending is government wages that, surprise surprise, includes military salaries and benefits. Then, a huge portion of the remaining discretionary funds are again allotted to the various military branches and war spending. Discretionary spending more than doubles the actual amount we put towards the military.
https://www.brookings.edu/articles/what-is-discretionary-spe...