I suspect that China is trying to make sure its manufacturing sector does not deteriorate. The country is trying to become a world power in all aspects. It needs a strong and efficient manufacturing force to beat the rest of the world plus it knows that it can't become a strong military force if it can't count on domestic manufacturing. Xi Jinping is just trying to balance the 2 industries. It's now a strong world power in software and there are all kinds of reasons to think that with in the next 30 years it will be a first class manufacturing power that will feed its quest for military might.
We are looking at his actions short term but he's acting on a long term view. Yes, his actions are causing a bit of turmoil now but long term it won't matter since he will get what he wants. A china that's second to none.