My only rationale for why it's OK for me to eat pigs is that the pigs would definitely eat me if the opportunity arose, and in this respect they are different from say, cows, or indeed octopuses, which show no inclination to consume human meat.
If you (as sometimes happens to farmers) drop dead in a pig sty after not long the pigs will eat you because you're food and they're hungry.