憂鬱 is a general noun/adjective for gloom or melancholy, whereas 憂鬱症 specifically refers to the medical condition.
Etymology
Compound of 憂鬱 (melancholy, gloom) and 症 (symptom, illness). The exact historical derivation is uncertain, but the term follows the pattern of medical condition names.