Natural selection does select for traits that do not kill you while simultaneously selecting for traits that's promote fecundity. Those with traits that don't kill them survive. Those with adaptive traits that allowing something to thrive are also selected for through reproductive advantages.