The problem with tiktok, x, or even red note is that the government ends up with an alternative to their narrative. They can't have any of that.
A good example is Israel/Palestine genocide. They lost the narrative war, people woke up. It's very difficult to put them back to sleep.
A lot easier to just ban the platform. Security is just an excuse/tool to do so.