means that
challenging circumstances provide opportunities to develop skills and resilience that easy conditions may not offer.
also
A smooth sea never made a skilled mariner.
When easy situations will never improve you or make you better., the saying “A calm sea does not make a skilled sailor” is appropriate.