I was driving on a sunny afternoon when I starting wondering about this.
My feeling is that glass may filter out key components of sunlight that would otherwise make it optimal for vitamin D production among other physiological effects. Perhaps this filtering might even make the rays harmful.
EDIT: Title clarity.
