If I owned a business in another country and that other country coerced me to sell against my wishes, I'd be very skeptical about receiving the proceeds from the sale.
So TikTok sells to a domestic company, domestic company wants to wire over $40bn to ByteDance but before the transfer goes through the Treasury Department decides a $40bn payment shouldn't be sent to a "foreign adversary". It's my understanding that the Treasury has a lot of leeway in this.