Maybe some people with sensitive stomachs are able to detect things like this quicker than others. Further, maybe the gene for a sensitive stomach confers a survival advantage not just to the individual, but to relatives of the individual (who can ‘free ride’ on their relative’s discerning stomach).