You are looking at the extrinsic value of a pig, but when it comes to ethics, you should look at its intrinsic value.
A pig wants to live just like a dog does. They want to avoid pain and suffering just like a dog does. They seek comfort just like dogs. The fact that they were bred for a certain human purpose, doesn't change any of that.