What is the point of the cashier asking for my zip code?

At certain stores, at checkout, the cashier will ask for my zip. Why? I understand the email and stuff, but I don't see what they are gaining from just the zip code