The variations might help the organism to survive if there is a change in its environment
Eg heat resistant bacteria
The variation might help the organism survive predators
Eg. Green beetles blend with green leaves thus disabling crows to spot them
:)