Let me explain:
Ex situ conservation is the conservation of components of biological diversity outside their natural habitats while in situ conservation is the conservation of ecosystems and natural habitats and the maintenance and recovery of viable populations of species in their natural surroundings and, in the case of domesticated or cultivated species, in the surroundings where they have developed their distinctive properties. A zoo would be classed as in situ conservation.