If I may add as well, there are many species in which they are extinct in the wild, only surviving due to small captive bred populations scattered around (even if the origins of those populations were wild) when their habitats were destroyed.
Examples would be some goodeid species.