As the temperature drops, the sugar crystallizes because a supersaturated solution is unstable and contains more solute (in this case, sugar) than can remain in solution. The more molecules that link the sugar crystals at a low temperature, the more rock candy is formed.