How number porting works
Number portability lets a customer keep their phone number when they change carrier. In the US the requirement is set out by the FCC. When a port completes, the number is reassigned in routing databases to the new carrier, while the original number block still shows the first carrier. That mismatch is how a lookup knows a port happened. Ports are common, and they can happen at any time without notice to anyone but the customer.