The difference lies in the ratio of fat, sugar, and flour that is used in the recipe and whether or not there are any leavening agents. Cakes are spongier and lighter, whereas brownies are generally denser, chewier, and more chocolatey.