On the one hand, yes, science should be completely open and unhindered by geopolitics.
But recall that Trump was in the White House at the time.
We are a community of generally highly educated nerds with a strong understanding of science and engineering. We understand that all labs will have leaks, we often have first hand experience of the difficulty of making any system truly secure. We’re also probably not interested in making big political gains from this - rather our discussion might be “omg that’s terrible what went wrong and how do we prevent it from happening again.”
But Trump, his party, and many many people in the West would care only for the political capital they could make from it, with potentially catastrophic results that would make COVID look relatively minor.
At a time when a global pandemic requires international cooperation and focus, these decisions are very very difficult and we shouldn’t be too hasty to judge.