Indirect genetic effects
A mother or father might have genes that cause them to feel sad or depressed. This might change the way they treat their child. The way they treat their child could make the child feel sad or depressed. In this way, the genes of the mother or father affected the child, even though the child did not have the genes for being depressed.