I’ve seen products sans nuts still have the warning if the product is made in a facility that makes other products with nuts.
My bet is the Chips Ahoy bag has one.
Yes, many mfg do warn that a product is made in a facility that uses nuts......”nut dust” is also to be avoided.