Target scans IDs for any purchase that requires them (e.g. alcohol).
Charitably, I guess they want to be able to prove in any kind of audit or claim that they are selling alcohol to minors that they are checking IDs for such purchases.
Uncharitably, it all goes into their customer profile database.
So only ever buy condoms and duct tape from Target. Got it.