Another analogous situation is infosec. I used to work in that space, and a big problem companies have is trying to figure out how much money to sink into their infosec teams. Good orgs invest in infosec, but they also don't just give all their profits to those teams. The value proposition of security in general is just hard to measure; that said organizations have a tendency to either massively overinvest (because fear, and it's hard to measure) or underinvest (because you don't need it until something goes wrong). A lot of times they start out underinvested, something bad happens, and then suddenly they're overinvested because they are afraid of bad thing happening again. I think this last description is very apt for the US.
Military leaders, as the consumers of resources allocated to the military, are in a strong position to understand what resource allocation is necessary for a set of goals...
... however...
Military leaders, being inherently and existentially dependent on resources allocated to the military, are fundamentally incentivized to advocate for increased resource allocation to the military, independently of whether those resources are more necessary for the goals of the military than for other public goods.