Sugar enhances sweetness, thickness, and moisture management in ice cream, impacting its texture and softness.