Humans dislike infection for the same reason they dislike cold showers. Pain is bad. Avoiding pain is good.