https://www.wholefoodsmarket.com/site-information/privacy-no...
Under "Data Sharing with Amazon"
Whole Foods Market may share customers' personal information with, and receive personal information from, Amazon and its affiliates
This part mentions tracking transactions:
if you self-identify as a Prime member at a Whole Foods Market store by scanning the designated QR code or providing the phone number associated with your Amazon account, or if you use a payment card that is saved in your Amazon wallet at a Whole Foods Market store, then your Whole Foods Market transaction information will be associated with your Amazon account and that data may be used by both Whole Foods Market and Amazon
You can opt-out by using a credit card that Amazon doesn't know about.