They add a rich flavor to the cake as well as nutrition, color, and structure. They also help the cake batter to rise while baking which creates the overall structure of the cake.