Sugar is added to bacon to enhance the flavor and help cure it by drawing out moisture and acts as a preservative to prevent bacteria growth.