Investments doing so well these last 40 years is the unusual part. Vast majority of the gains in the stock market over its history happened from 1977-2007.
The implied causation : https://en.wikipedia.org/wiki/Bretton_Woods_system
Bretton Woods was a defacto global* monetary system with other currencies tied to the dollar, and the dollar convertible to gold at a fixed rate. Nixon ended it in 1971, at which point the government was unconstrained by any external forces when determining economic policy. The debt to GDP ratio in 1971 was about 35% and declining. Today it's 122%. Even before COVID it was 105% and rising.
If this is not sustainable, then there will be a generation which will simultaneously be the last to benefit and first to suffer for this.
The FTSE 100 is currently at almost exactly the same level as it was on New Year's Eve December 1999!