Kids will emulate what their parents, especially, teach them is good behaviour. If they're brought up in a household where sexism, disrespect, and other bad morals are normal, they'll emulate that. If they're brought up in a household where kindness, respect, and consideration are normal, they'll emulate that. Kids are extremely impressionable and if they're in an environment where certain behaviours are practiced, they'll grow up thinking that those behaviours are normal and therefore show them.
And bad parenting results in assholes.
These two things are not related.