Why is it?

Why is it that my dogs will be sick all night if I accidentally drop a piece of cooked chicken skin on the floor and they eat it before I can pick it up but they can drink filthy water out of pools along the side of the road when we walk and be perfectly fine? What am I missing here?