yeah it's called the process of resilience / resiliencey in psychology. Basically it means kids LEARN FROM THEIR PARENTS MISTAKE and dont reproduce em, often doing exactly the oposite of what they parents did just to make sure they wont end "like em".
The problem is that most of the time kids are just endoctrinated and dont know they are being brainwashed until it's too late (when they reach their 30s) .
Also some people figure how badly they ve been raised/educated , conditionned , know they re just repeating their father/mother relationship or behaviors in their own lifes, but cant find the strenght to change. Endangering their own progeniture as a result by transimiting it the bad stuff they got from their own parents AGAIN.
But yeah, sometimes kids find an exit, thanks god, and it's often another model, mentor, that help them see something different, think differently. These people are called tutors of resiliency and can teach individuals how to take control of their life and not be victims of their parents bad influences.
They re especially important for young males with no father figure.
Psychologists are now sure that a kid should better be raised by a single FATHER instead of a single mother, cause single mothers often cant deal with the emotional /disciplinary part of the education, especially when they re working and facing their own shortcomings in their daily life.
The father figure prevails, as imperfect the father might be. (we re not talking about fathers who destroy their kids here of course, but often fathers arent as bad as the mothers picture em, and suffer a lot from the women own biased comprehension -more like inmcomprehension- of the how things work.)
Single mothers are destroying generations of young males and females, and lonely single fathers who are disqualified by society, mothers, are victims too.
Because it destroys their faith in themselves, it prevent em from becoming better men and fathers, they are refused the right to be who they are, whoever they are.
Kids are emotional sponges. They absorb absoultey everything, that is shown, that is said, that is not shown and that is not said. They ENGRAVE all of this in their brains when it is in its developmental stages in childhood and teenage years, and then it will corrupt their behavior and cognitive capabilities for life.
Kids observe interiorize and copy their loved ones behaviors. This is how they "learn". It has been proven humans only seem to stop learning as much when they hit their 30s. It means that during 30 years everything that we learn is fundamental and the more we age, the more difficult it becomes to "un-learn" what is inapropriate to our survival in the environment that surrounds us.