Answer :

Stomach acid curdles the stomach contents (food) when being broken down and digested for absorption into the body; so it's like "spoiled food" and this is what is regurgitated when vomit.