Why might some kinds of living things undergo sexual reproduction at times when conditions in their environment become less favorable?.