Instead of letting the amassed credit be reduced through explicit defaults, central banks have opted to print more currency in order to help repay the debt over time.
In most of these situations, the war ended quickly, spending was reduced, deficits disappeared, and the Treasury no longer had to print money or pressure the Fed to help with deficit financing.