Under favorable environmental conditions, the body does not need to adapt to changes in the environment, therefore it is less energy-intensive to propagate asexually, reproducing its own kind. Under adverse environmental conditions, organisms reproduce sexually, thereby forming a new generation of genetic diversity, which allows them to adapt to new environmental conditions.
Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.