Korean state had an extremely focused industrial policy to improve the added value created by the country's economic output.
The thing that needs critique here is that free trade would be somehow always beneficial. South Koreans state aggressively supported those industries it wanted to uplift.
Countries do rise up from third world countries to advanced industries. It just does not happen very often - sadly.
Another example of a country that rose from total poverty to industrialized advanced economy is my home country Finland which was in the 18th century dirt poor, started to industrialize, and only after second world war started to get some resemblance of wealth. However, the long history of poverty is still reflected to this day in lack of capital (are there other reasons for lack of capital I'm not sure).