My guess is they need to fund big armies to suppress the periphery of their empire in the long term. It's not so much Russia threatening to expand. Ukraine is written down as a loss unofficially.
But now why would poor nations stay members of the EU when they are going to get drained of assets and economically exploited? They are at risk of leaving and trading with nations that have more economic activity.
The imperialists use the military when the economy is going terribly. The biggest demand for tanks is intimidating your civilians rolling around your own urban areas. The political puppets need military forces to strong arm their people.