Why and how to use writing as self-therapy for anxiety and depression

Investigating WHY expressing what we have experienced and what we feel is necessary for healing and HOW writing be a good alternative for doing this?