Why do depressed individuals have difficulties in their parenting role?

Why do depressed individuals have difficulties in their parenting role?