Hunting a wild animal is not necessary in most cases. Especially if we have farming. You had no say in the existence of that wild animal, you have no claim on it unless you need it to survive. Say you get lost in the woods and need sustenance to survive, that is excusable sure.
Farmed animals exist purely because of their use to us. We enable their lived experience. Without us they wouldn't exist, they wouldn't experience sitting in the grass looking at a sunset, running around in the field or whatever.
And I did mention it depends on their lived experience. I was not talking about the bleak industrial warehouses animals that never see the light of day and sit in bleak conditions. They don't get much out of it. I am sure we can figure out a fair exchange without getting locked in philosophical conundrums about it.