Which is exactly what many stores do, except on the way out (at the register.) They also tend to get pretty annoyed at you when you say "no thanks" to providing a number.
Years ago I remember it being much worse (especially at Radio Shack!). Employees would have to do stuff like enter a fake phone number because the system often didn't have any bypass mechanism etc, so I can understand their annoyance. I recall aborting one sale out of principle when neither of us would budge. I'm pretty sure that wasn't the playbook the store clerk was supposed to be following but oh well!
Which behavior, the asking for phone numbers or the getting annoyed?
Many major chains in the US have some sort of "loyalty" program that requires a phone number, email address, or both.
As for the getting annoyed, I've gotten countless eyerolls and a few snide comments when I've politely declined to give a phone number.