Originally Posted by
thesaints
They had a camera, which recognized me (I guess from the scanned passport information).
Not exactly; the camera most likely recognized you from the photo in your about-to-expire US Passport. CBP likely matched the data elements from your PNR with US databases and found a citizenship match and loaded your passport photo into the gallery.