What does the law require of foreign corporations to operate in China?
The requirements may have been too steep for others e.g. source code disclosure.
Facebook was banned after they refused to identify rioters who were using Messenger to communicate. Google was banned because they wouldn't comply with content restrictions.