Of course, validation is helpful for people that feel depressed or sad. Dark lyrics speak to a listener and remind them that they’re not alone in their struggle.
Having those connections confirms that their experience, thoughts and feelings are a fundamental (albeit challenging) part of the human condition. The song brings those ideas to the forefront where they can be processed.
When done correctly, moody music is an effective instrument of catharsis for the writer and listener.