Vinegar preserves and adds a tangy flavor to the salsa. When included in a canned salsa, it can prevent the growth of harmful bacteria.