Zoos are fucking terrible places, and the fact that this is the logical conclusion means we shouldn't have Wild animals publically exposed in easily accessible cages anyone can get into.
Maybe try out a good zoo sometime, they are great when the areas are designed for the animal's needs. e.g. ideally the animals have areas that are no accessible to the visitors, like monkeys climbing further back into the forest to have their peace while zoos will then place the food in the visitor areas to attract the animals back to the people.
Modern zoos are also very open if the climate allows it. Recently I've been to the Singapore zoo and most of the monkeys and apes were basically not locked up at all, but they still don't escape because they feel fine. It was also a pleasure to see how much happier the animals seemed to be compared to other zoos I've been to where the animals seemed very lethargic and bored/deranged.
Zoos are not just for the mere amusement of humans btw. For one, the combined population of each species in all zoos acts as a back-up in case our efforts to preserve the wild individuals fails.
In general, zoo animals are not taken from the wild but are born in captivity for generations.
They also have a big educational purpose, enabling all parents in cities to teach their kids about animals. This may seem trivial but seeing animals in the flesh leaves a much bigger impression and results in more people feeling empathetic towards them. You need this to fund the mentioned efforts to actually do some good for animals in the wild.