Those international flights were allowed to let countries evacuate their own citizens out. If they were banned, you would be making the exact same complaint but reversed: "China held other countries' citizens hostage in Wuhan." Damned if you do, damned if you don't.