How does BitPay detect unconfirmed transactions so quickly?
That is feature of Bitcoin node network.

When your client sends your transaction to network, every node is also sending your transaction to every other connected nodes. In about 5 seconds it is broadcasted in every place in world.