Adding yogurt to cake batter adds liquid and fat, which will help make your cake moist. It also reacts with baking soda to add rise to your cake. And, it can bring a very mild tang that balances some of the sugary flavor.