I won't call you an idiot, but assuming that all cases are simply people being sad is a bit simplistic.
Some people are going to be more susceptible to depression, for whatever reasons, and improving someone's surroundings is probably going to prevent or alleviate depression to an extent, but to people who are depressed now it's somewhat pointless advice.