Buttermilk can help to create a tender and moist texture in cakes due to its acidity, which interacts with the leavening agent to produce carbon dioxide that makes cakes rise. The tangy flavor of buttermilk also adds complexity and depth of flavor to cakes.