genes
At some point, the variation probably came from a mutation. A mutation is a random change in an organism's genes. Mutations are natural. Some are harmful, but many are neutral. If the trait from the mutation is beneficial, that organism may have a better chance to survive. An organism that survives is likely to have offspring. If it does, it may pass the mutation on to its offspring. The offspring may be more likely to survive.