Here, gender prediction does not benefit from including mental conditions, but helps vice versa.
predicting gender is qualitatively different from predicting mental health conditions: it seems likely that the signals for anxiety ares much more similar to the ones for depression than for, say, being male, and can therefore add to detecting depression.