The virus acquired the traits that made it infectious to humans either through natural selection or bio-engineering.
If it was through natural selection, then it was likely such virus was going to cause a pandemic whether it was leaked by the lab or not, since presumably there's a natural reservoir of the virus.