Why are there no legs on snakes?

Gene sequencing revealed that the snake had mutations that lost limbs and created strange body features.