Only the US has managed to avoid this trap "thanks" to its lack of industry unions and social policies, coupled with a free market economy, start-up friendly tax system, and strong VC culture focused on disrupting existing players by throwing big money at new risky ideas.
While the VC investment culture and focus on disrupting existing players is non existent in most other countries, coupled with the stronger social policies and unions, like in Europe for example, means there's a lot of political pressure (and lobbying!) to support the existing big old established players that contribute to the economy and employ tens of thousands of workers, to keep the status quo, no matter how antiquated and stagnating they are, instead of letting the free market run its course and letting them slowly whither die and focus instead on creating new businesses and industries in their place.
This is also compounded in some of the countries I listed above by the ageing demographics who's retirement prospects are tied to the old declining industries(like in Germany), meaning their votes, government policies and financial aid will focus on keeping those old declining industries on life support for as long as possible, instead of focusing on supporting newer industries instead at the expense of the older ones. It's what the people vote for.
Exceptions would be Singapore, Switzerland, and some of the UK-Ireland, Nordic and BeNeLux countries that have a strong education system focused on research and innovation and a business friendly tax and legal system for VC investors and who's population isn't too invested and entrenched in old declining industries.
The rest was - from a financial point of view - a sideshow. They have some awesome technology companies, highly reputed and lots of knowledge and research happening there relative to its size, but that doesn't change the financial picture.
The US welcomed the engineers/scientists/wealthy fleeing the war and it continued after 1945. Same with the UK, but to a lesser extent I expect.
Of course the US had people of similar ability, but the migration from European countries to the US (and other places) had the double effect of reducing the talent in one place and adding to it in another.
The foundation of the US tech industry was created in the years after WW2.
So was Germany and Japan. Both of which became much wealthier post-WW2 than before thanks to their booming industries.
The difference is the US managed to successfully pivot away from the post-WW2 boom industries into the 21st century growth industry, aka IT or tech, while the other two countries got complacent and stagnant, pigeonholed in the same post-WW2 industries that made them wealthy in the first place but which aren't driving as much growth anymore today.
And Kodak invented the digital camera only for Canon and Nikon to steal their lunch. And Xerox invented the GUI and let Apple steal their lunch. And GM invented the EV1, the world's first mass produced EV and then let Tesla and BYD steal their lunch. And IBM invented the PC and ... you get the point already.
Same with HP, SUN, SGI, Cisco, Blackberry, Nokia, Intel, etc insert your favorite $EXAMPLE here. Google is also on a similar path.
It's not a country problem, it's a "big and old company problem", which has fossilized and lacks future vision so stays conservative and slowly atrophies.