Plunging hot hard boiled eggs into ice-cold water shocks the eggs and stops them from cooking in residual heat. It helps the egg whites set - contracting away from shell and detaching from the membrane. It keeps the yolks a beautiful yellow. The eggs will also be easier to peel.