1- There may be cracks in the earth that let sunlight leak in from the surface.
2- Perhaps cars have fallen into the Underground, or Papyrus has heard about them from Undyne, who read about them in a manga.
3- Weather is able to occur in large enough underground spaces, so snow is possible in Snowdin.