Most countries don't do that because the funding for military is never excluded from budget calculations. But when such a need arises, like in wartime or emergencies, they do.
> i get really fed up with people pretending that military spending is anywhere close to entitlement spending these days
Only in the US, where military has been made into a teat from which the military-industry sector sucks as hard as it can. That way you end up with gigantic flops like F-35 that go on forever. They are flops for defense, but they are major successes for channeling public money to the industry...