There's more to this than just being a provider of manufacturing services for overseas consumer goods companies wishing to outsource production. China has pursued a policy of forcing Western heavy-industry companies (infrastructure, aerospace, etc.) wishing to do business in China to form joint ventures with domestic Chinese companies which then serve as a means of transferring expertise to the Chinese companies. The Western companies go along with this because it's preferable to being shut out of the Chinese market altogether.
For example, Chinese high speed trains were initially based on imported designs (both the Shinkansen and European trains) built by joint ventures between the original makers and Chinese companies. But today China is domestically producing high speed trains using technology copied from those original ones.