It’s interesting to think about darkness and light. We all (most) favor the light. But, if we consider the (natural law) Principle of Duality, there is no darkness without the light. One cannot define the day without the night.
Both extremes, darkness and light, and winding between them creates movement forward.
And like you wrote, we need challenge to advance, improve, or optimize.