If I notice this kind of stuff, I draw it to the cashier's attention. Sometimes it's a "2 for 1" sale or something. If I don't notice until I get home, I call and tell the store staff what happened and tell them I'll pay for it the next time I'm there. Most of the time, they will tell you to keep it.