that's not wrong but for the sake of argument perhaps its better to look at the DoD budget through the political lens ... its a corrupt jobs program in which the government funnels money to a broad swath of American states and counties, mostly via defense contractors.
Yes its incredible dumb and inefficient but many millions of people earn their livelihood, healthcare and pensions by building useless bombs, so its hard (politically) to say we'll take that away to shore-up Social Security or whatever.