Note that this change was not due to pollution making the moths darker. The dark variety had always existed in small numbers, but only had a selective advantage when the selection pressure changed.
The proportion of well-adapted organisms in a population can increase over the generations by the process of evolution by natural selection.