Depression definitely can be caused by abuse. In fact if you're being abused you are probably also depressed.
Depression and other mental illnesses are also often caused by things that can't be externally influenced at all.
Casually linking poor parenting with mental illness enforces a stigma that discourages people from seeking treatment for themselves or for their children.