ByteDance has a different version of TikTok (called Douyin) for the Chinese market, which complies with their censorship restrictions. My guess is they pulled TikTok out of HK to replace it with Douyin.
It's absolutely ridiculous a Chinese company would be the first to actually close down the service to protect users, don't you think ?