Thyroid diseases have documented association with psychiatric illnesses. Hypothyroidism or subclinical hypothyroidism lowers the metabolic rate so it could cause a reduction in serotonin levels in turn leading to depression in many people. It could happen in many chronic medical conditions too.