The defects are largely a result of the limited capabilities of the breeding process (cross animals with a trait, hope that not too much other stuff comes along for the ride).
A fun angle: genetic engineering will eventually enable us to correct many of the problems in purebred animals. They are often good targets for even a limited genetic engineering capability (where the pure bred population has a high frequency of a single defective gene).