It was used in 1665 in English author Richard Baker's "Chronicle" to refer to someone having "a great depression of spirit", and by English author Samuel Johnson in a similar sense in 1753.
From the 14th century, "to depress" meant to subjugate or to bring down in spirits.