Why do warning colours prevent some animals being eaten?

Warning colors prevent some animals from being eaten because their bright colors serve as a warning. The colors signify to predators that eating the animal will cause them to become ill or hurt.