Why so dark and gloomy?

Funny theory; people who literally spend all day indoors, in the dark and gloomy environment, mentally become dark and gloomy.

I’m starting to think that the metaphorical is also the literal.