In chocolate cakes, this helps to dissolve the sugar and cocoa powder to create a smoother batter and helps make the cocoa taste richer.