It provides structure, richness, leavening and color. Because eggs solidify when heated, they set the structure working in tandem with the baking powder. The yolk adds richness and contributes a golden brown color.