Genetic diversity matters for wildlife – and for the livestock on which we depend. Yet breed after breed is disappearing into extinction.