Adding pudding to the cake mix adds flavor and moistens the cake. Adding pudding is similar to adding sour cream or yogurt to a cake.