Wars artificially boost economies, simply because military shit needs to be built during the war, and blown up shit needs fixing after the war. The French even have a word for it.
War also turbocharges scientific research, and post-war economies derive incalculable benefits from new scientific discoveries. You can thank Nazi Germany for the jet plane and landing man on the moon, WW2 Britain for the sonar and the computer (I guess you can thank Nazi Germany for those too in a sense...), Cold War USA for the internet, etc etc.
When all that artificial growth stops, unemployment returns, states borrow out of proportion to maintain social programs for an aging population, everybody gets poorer, lack of education and religious thinking come back as a result, people vote for populists to solve their problems because they're not educated enough to know better, the populists start new wars, and when the war is over, everybody swears it will never happen, reconstruction begins, everybody becomes richer again, rinse, repeat.
We're in the populists-start-new-wars phase now.