Dissolving sugar in hot liquid helps to give brownies a shiny crust. Additionally, adding hot liquid to cocoa powder is known as blooming, a process that draws out its rich flavor. (ref: The Spruce Eats)