In a natural world these animals wouldn't exist. There's no such thing as a cow in nature. There are things that are almost like a cow, but they're not cows.
Most of the plants and animals we breed for food are not represented in nature nature.
> Why is it OK to do this to a pig but not, say, a dog?
Dogs are bred for food in some parts of the world.
And elsewhere, dogs have been bred for their appearance at the expense of their health or functional traits, on the whims of people running competitions.
See, for example: https://www.amazon.com/Dog-Wars-Border-Battled-American/dp/0...
Tomatoes were a small yellow berry. Europeans thought they were poisonous for a while because they are nightshades.[1]
Milk and beef cattle are most likely descended from Aurochs.[2]
There are many species that stop reproducing depending on their environment. In zoos, this can be a big problem.
If it were humans in this situation, would you feel the same way? Is your treatment of them excused because you "allowed them to live"? Why is it OK to do this to a pig but not, say, a dog? Or a gorilla?