In captivity, you have to subject mammals to extreme stress or hardship to prevent them from breeding.
For example cheetahs: https://www.youtube.com/watch?v=nXQD3nPaO-k
You can give cheetahs all the food and luxury and they won't mate. They need exercise and danger and free space for courtship