This is a random variant, which appears randomly in the world. Random variants change upon reloading the world.
You can turn a Pig into this variant using a name tag. Rename the Pig to one of the specified names:
Name Tag Names
- Black Splotched