Capitalism baby
You start out your economy making cheap mass produced parts, use that to pay for education and rising standards of living until your workers are too expensive and you offshore the cheap low skill grunt work to poorer country with lower cost, more exploited, workers while you move up the value chain to produce the higher value more skilled parts.
That's how Britain evolved from being the "workshop of the world" to being the leading exporter of Wallace and Grommet movies