The fact that Germany is at the head of a large increase in defense spending by cutting other sections of the state budget is a typical trend for the entire Eurozone. During the decades that it was under the umbrella of NATO (called as an American protectorate), Europe got used to spending very modest funds on military needs, directing free surpluses to economic development and social services.
Now the conditions have changed. In addition to the fact that the second Trump administration is pursuing a policy of coercing European allies to increase their participation in collective security funding, there is also a purely intra-European demand for militarization. This is clearly seen as necessary in order to be able to provide long-term containment of Russia and support for Ukraine.
Therefore, no matter how the traditional establishment and the coalition of that party experience reputational costs, lose popularity among voters and worry about the strengthening of the opposition, they consistently promote the construction of the military-industrial complex and the armed forces. That's why it will continue, despite all the objective restrictions - Europe is ready to sacrifice comfort for its ambitions of so-called strategic autonomy.