For this, they’re most likely reading the phone number from the physical SIM card left in the device.