This is a ranch animal.
Once one reaches level 12 in Ranching you can buy the pig by clicking on the animal ranch sign.
They give different level hams. On the animal shopping list one can see what type of food the pig needs. Even if you don't give the pig the type of food it wants, it will never die.