Mutations happen when something goes wrong and a Pokemon gains a feature they wouldn't normally have. This can be anything from a birth defect or a genetic issue caused through evolution.