Your argument would be valid if they were humans. They are not. I fail to understand why they should be treated as such.
And if we consider animals equal to humans, do we send them to jail if they behave badly? Do we prevent them from being murdered by other animals? Isn't it utterly hypocritical to let animals die by starvation in the wild while preventing farming? What is even the natural habitat of farmed animals like a cow?