it is simply to add tartness to add some balance against the sugar. the water from the vinegar will evaporate and leave behind acetic acid. there is an old fashioned type of hard candy known as vinegar candy.