Random mutations that confer a reproductive advantage have a higher chance of being passed on than those that have a neutral or negative effect on reproduction. Simply being alive is an important factor in reproducing...

We are all products of thousands upon thousands of random mutations, accumulated over vast amounts of time, most of which either had no effect or a positive effect on the organisms in which they occurred in the environment in which which they lived.