Because governments that want to exert that kind of control on the population are already totalitarian, which means they already have control over companies within their borders, including social media platforms. The government doesn't need to build it to control it.