Sugar, like salt, is actually crystalline in nature! The water helps the crystal structure break up (aka dissolve) so that you get a smooth caramel sauce. However, sometimes the water evaporates too quickly and leaves sugar granules to crystalize again on the side of the pan. When this happens, it starts a chain reaction for the rest of the sugar in the pan.