Question about buying beer?

Bought some ammo at Walmart a few months ago, kid asked for my ID, said he had to just cause big brother was watching and he'll get in trouble if he didn't check my ID.