Many can, they just choose not to. They balance the economy different instead of going all in on manufacturing and export. They don't suppress domestic consumption, have strong labor protection laws etc.
Let me rephrase you: “many could…“. Because if you don’t manufacture continuously you loose knowledge. It’s more than buying machinery and hiring labor. Manufacturing is continuous improvement process. Improving raw materials, manufacturing parameters, testing technology. When one stops it it’s game over.
There is "failing to compete with China" and then there is "hacking both of your feet off before the race even begins and being proud of it". The case of Germany falls squarely in the latter category.
Definitely not the ones who spent the last two decades being anti-growth and high cost just to suddenly realize they do need to have their own domestic businesses.