When making homemade red velvet cake, vinegar reacts with the cocoa powder and other ingredients, enhancing the cake's reddish hue. It also helps to create a tender and moist texture by interacting with the baking soda, promoting leavening and resulting in a lighter, fluffier cake. The acidity from the vinegar also balances the sweetness and contributes to the overall flavor profile of the red velvet cake.