It could also be a misdiagnosis.
The most popular that I know are bipolar, thyroid problems, early dementia, thyroid issues, prodromal psychosis.
This page also list various other medical conditions that may mimic some or all of the symptoms of depression.
https://en.wikipedia.org/wiki/Depres...ial_diagnoses)