You make a good point and I face a similar dilemma. Your second photo is quite thought provoking.
This is a bit of a trick photo -
It is actually not the goose that is fenced in, it is me.
This is a very good question. But it will be fully based on opinions (which is perfectly fine). Basically it's like asking if you think it's wrong to hunt, even though you (not you, but people in general) know that even though hunting is a sport, the main reason for it is to keep the numbers under control. For instance, so deer aren't running through cities, or one species is taking all the food away from another species, and many many more reasons. I am 26, and I used to hunt the beginning of my life, until I was about 22. I grew up in the country. I did enjoy it.
But now, I cannot hunt anymore, because I have changed, and I jsut don't have the heart to see the animals wounded before they die (if you get a hit that does not kill upon instant). It just breaks my heart to see the animal suffer. BUT, even though I mentally can't do it anymore, I know it needs to be done, and someone has to do it. So even though I see the dark side of it, I fully support hunting, because I know the reasons toward it, and that it must happen to keep populations under control.
That being said, like others have said, it is sad seeing animals caged up, not running free, and in a confined area. But they are providing entertainment, they are very educational first hand to whomever visits the zoo, and also for research, and many other reasons. Beyond that, some of those animals really are better off in the zoo, as some have arrived there because they have been saved.
So yeah, it is sad to see, but IMO I think it is needed, just as lab testing on some animals is needed, to help same human lives and benefit us, and also other animals (just an example).