There is never any guarantee that profits are long term or short term, or that your manufacturing specialization is going to remain useful, instead of being a dead end. Retaining specialization on, say, cathod tubes wasn't exactly profitable. See all the camera manufacturers that zigged when they should have zagged, and used their manufacturing strength to unprofitability. All of this is hidden by talking about 'manufacturing' in very large terms, but the real world doesn't work like that. Specifically, semiconductors were a very nice place to keep expertise in, and paid off. Internal combustion engines, and filaments for incandescent lighbulbs probably not.
Even in cases where we are looking at the same kind of manufacturing in multiple places, competitive advantages are lost. There are parts of Europe taht still have metallurgy and never attempted to divest, but lost comparative advantages because better technology came in at the wrong time in the capital depreciation curve: They invested heavily at the slightly wrong time, still had expensive labor, so they became far less competitive, at least for a while. Did they not pray enough to the manufacturing god? Did the Netherlands get lucky, or was sufficient dedication to manufacturing that led them to have ASML in their borders? Is the fact that Novo Nordisk found the most important pharmaceutical in the world a matter of Danish superior industrial policy, or did they just get lucky compared to the many other places with large investments in pharma that didn't get anywhere near that lucky?
The path dependence is not so predictable, and the path that makes you better today can lead you down a cliff. It's all gambles, and whoever claims they can predict what is the right one in the long run is being overconfident