Another possibility: advertising.
Your cravings aren't your own, they're the effect of cleverly placed advertising in preparation to the sale of those items. You didn't notice it, because you "tune out" advertising, but at the right moment it all "clicked into place" and turned into a craving... just in time for the seller to have the goods ready for you to buy them.