Google wasn't blocked in China until the company refused to censor their search results back in 2010. Facebook wasn't blocked until Uygher activists started using it as a communications network during riots back in 2009. Social networks that allow the government unlimited power to snoop on messages and censor content are still widely used.
China's internet censorship has absolutely nothing to do with the United States' surveillance and has everything to do with the Chinese Communist Party controlling its citizens. It's completely misleading to frame it as anything else.