It is glazed while still hot so that the water evaporates and leaves a sticky sugar coating. Commercially made buns are sometimes topped with glace icing.
The process of creating the bun's crust involves glazing it while still warm, causing the water to evaporate and leave behind a sticky sugar layer. This same technique is used to top some commercially produced buns with a sweet glaze icing.