Eggs provide moisture as well as flavor to cakes. They also act as leavening agents, providing air to help the cakes or brownies rise.