How do conservation efforts in zoos contribute to the survival of endangered species like the red panda?

Red panda cubs have been born in Sikkim zoo after seven years. I am curious about the role of zoos in the conservation of endangered species and how these efforts complement or differ from conservation in the wild.