proverb

Many a good father has but a bad son.

heredity

expresses that

Sometimes the child of a good family is not so good.