Why are moths called peppered moth?

Peppered moths are a certain species of moth that inhabited trees. when the industrial revolution came, it made a lot of the trees black. the moths had to keep themselves hidden from birds, so some of the moths turned a black/brown color. It almost looks like they have pepper on them. Most of the moths just migrated to a different location, keeping their light original color.