I believe the answer is: Emotions help us act with minimally conscious awareness
In this context, the emotion of disgust would most likely cause us to make attempts in order to prevent it from happening again in the future.
This would decrease our likelihood from consuming spoiled milk again by developing the habbit of checking our food before we consume it, which would help us in our survival.