It's a genetic thing. They spread. Because if a gray and black squirrel mate, the offspring is black. They are easy pickings for predators though, and that keeps their numbers in check.
Incidentally, both gray colored squirrels and black colored squirrels are "gray squirrels" by classification.
Lots of literature on this.