If the reason for their survival (such as a slightly enhanced ability or trait) can be passed on to their offspring (that is, it's genetically encoded), then the next generation should be better able to withstand the newly encountered environmental stress, and the population overall will be less susceptible to it.