Why do we need to have the following code check when writing NFC cards?

Why do we need to have the following code check when writing NFC cards?

if(memcmp(&nfc_data, &nfc_worker->dev_data->nfc_data, sizeof(FuriHalNfcDevData)) !=
0) {
FURI_LOG_E(TAG, “Wrong card”);
nfc_worker->callback(NfcWorkerEventWrongCard, nfc_worker->context);
break;
}

flipperzero-firmware/nfc_worker.c at 5d7bdca835e83c6925d7802774ac1ffe03766368 · flipperdevices/flipperzero-firmware (github.com)