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.
DARPA’s budget was slightly under $4B in 2022 — an order of magnitude smaller than the NIH.
My original comparison was because Medicare and the DOD have their own funding authorities and I didn’t want to sift through their budgets to find it all.
The US DOD budget was 753B USD for the same year.
The US Medicare program was 747B USD; with another 45B USD for NIH.
So the US actually spends about equal amounts on military and healthcare, at the federal level — about 11.5% on each.
A better question might be why the US gets so little ROI on its healthcare spending.