As stated above. I can go months without eating an egg, for example, and suddenly crave eggs benedict for breakfast everyday.
Good thing is my dietitian is aware of this executive dysfunction/quirk/habit and works closely with me to help me out planning meals in a way that works me.
Right now I am on a soup kick: Soup, soup, soup everyday, all day.
ETA A word
Doing smaller shopping trips but more often can help, but i know that isn’t practical for many people.
I do relate to the problem. I wish there was a magic fridge that would remind me what’s in it and needing to get used up soon.