1. The solubility of sugar is high, but when the concentration exceeds the saturation point, crystallization will occur. The crystals will attach to an object, in this case, the skewer.
You can understand the reason for crystallization by learning the Principle of Le Chatlier.
2. The solubility of sugar, or sucrose, in water varies with temperature, ranging from 179 grams per 100 milliliters at 20 degrees Celsius to 487 grams per 100 milliliters at 100 degrees Celsius.