The light colored moths don't extinct but they become less in number due to natural selection.
Natural selection is the phenomenon in the biology in which the group of organisms which is most suitable to the changing environment will survive and increase its population by reproduction while non suitable group will decrease in number due to low ability to cope with changing environment.
In this question before industrial revolution, light color moths have very light places like lichens to hide themselves from the predators by attaching to light color lichens.
But after industrial revolution due to pollution white lichen die and the habitat for white moths become less and they are more visible to the predators.
That's why their number decreases and dark color moths increase in number.