What you might not understand is that the Chinese government has its hands in every corporation, organization, competitor, etc.
You might have false assumptions coming from the US system, where corporations and government are separate entities. They even sue one another at times.
In China, large corporations are overseen by the government. The government funds them, decides what they can and cannot do, and decides which corporations will succeed. You cannot build a search engine or social network right now, unless you pull a political coup, because the government controls which companies succeed. Baidu and Tencent are the "blessed children" for the time being.
Within the government, China is run by various clans, continually vying for power in the Communist Party. It's easiest to build a large company by having a family member in the upper echelon of the party, to push things through.
Everything is connected to the government in China. It's in your company's interest to keep the party in power, because the corrupt politicians keep you in business. It's in your wealthy family's interest to keep the government in power, because they keep you wealthy. It's a giant corrupt system, keeping itself in place.
Most likely, these attacks were actually executed by some low-level hackers somewhere. But most certainly, someone in the government has something to do with their funding, organization, or guidance.