"Did the research (not the article) leave that out?"
The article didn't include links to the research, so who knows.
On top of that, I'd imagine that it would be hard to control for the physiological and psychological benefits of being outside (nature, activity, etc; or detriments of being indoors like air quality) unless the subjects were in a controlled environment. It would be interesting to see how the research controlled for these, if they did at all. Many studies following large cohorts in real life are not looking at proving causation, but showing correlation because they can't fully control all the variables.