Up to a point there's a cost advantage, but Tim Cook has also pointed that Apple uses Chinese factories because it allows them to take advantage of the local manufacturing capabilities, which are substantial. [0] In fact to hear him tell it those capabilities are simply not available elsewhere. I take him at his word on this topic at least.
[0] https://www.inc.com/glenn-leibowitz/apple-ceo-tim-cook-this-...