Laws exist that ban practices that are - according to those who set and enforce the laws - excessively cruel to pigs. That’s all this discussion is about.
That pigs are still treated with cruelty is a terrible thing, and I’d happily see more done to protect all animals against cruelty. But it’s a separate argument to what’s relevant here.