The reason we put eggs in ice bath is to stop the further cooking process in eggs. Putting boil eggs in ice water also helps in easy peeling and also stops the discoloration of the yolk.