You know how to can get turned off of eggs if you get the egg ick.
I don't think I do know actually. But here's an attempt at answering this question anyway:
And bonus, anybody know why that happens?
We are usually very quick at relating sickness or even discomfort to the food we ate at the time or slightly before. This is a very valuable trait to avoid food that is unhealthy or even poisonous. But it's only based on correlation, so it can turn us off food that is not actually causing the sickness but we just happened to eat at the time.