Ultimately, the purpose of preserving biodiversity is to maintain ecological function so when a species exists only in captivity, it is ecologically extinct.
The main objective of preserving biodiversity is to maintain ecosystem balance, so when a species exists solely in captivity, it is functionally extinct.