In the case of depression and anxiety, at least in the view of CBT, there is always some sort of cognitive distortion at play. In other words, if the mental anguish originates from having taken a distorted view of the world, it wouldn't tell us anything if the world was an OK place or not to begin with.