Sugar is added to hot sauce to balance the heat from the peppers. It helps round out the flavor and can bring out the other ingredients' nuances.