It's the law.
Its not to track it...its proof they checked your ID as required by law.
The only reason they scan it instead of typing in a d.o.b. is to prove they have actually checked and guaranteed your age. Before this, they (and all retail cashiers) were typing in a random date and getting in trouble. Don't take it personally. It protects everyone.
Thanks! Your answer is awaiting moderation.