Most believe that it didn't, but rather that it was in the human population a few months before we knew. But maybe not.
https://en.wikipedia.org/wiki/Biosafety_level#Biosafety_leve...
Both labs in Wuhan have had accidental contamination incidents while collecting field samples in caves. Working with hazardous materials is always dangerous, and history has no shortage of lessons to teach us.