7UP acts as a leavening agent -- it helps the cake rise, like baking soda or baking powder. It also gives the cake lime and lemon flavor.