Buttermilk adds a subtle tangy flavor to the onions but also helps to tenderize them, making the onion strings soft and flavorful. Additionally, the buttermilk creates a natural adhesive for the seasoned flour coating, ensuring it sticks to the onions during frying.