That is why good breeders do several health and temperament tests, as well as get them a few titles, before breeding, they also make sure that the dog and dam's sires and dams were healthy generations back.
Not saying that a genetic problem won't pop up, but by getting one from a GOOD, REPUTABLE breeder, your chances are better to get a healthy dog.
Many breeds are prone to genetic disorders.