The airline isn't learning anything from this that it doesn't already know. Flight reservations are decidedly not anonymous, and the TSA already checks photo ID.
as long as they are only allowed to use this data to secure flights, and nothing else (including selling it).
Laws against tracking and selling of private data needs to step up in the USA (i would imagine this falls under GDPR, and you'd have to give consent in europe for this to happen).