It's because you're from out of country. You'll almost never be asked to produce ID with a standard credit card purchase in the US, unless it's unusual in amount.
I'm in my late 30s and have never once been asked to produce proof of ID in relation to a standard credit card purchase. Whether at a grocery store, restaurant, etc. I've never seen anyone else have to show ID either, maybe once in the 1980s.