Why do photos taken from the sunlit surface of the Moon show a pitch-black sky?
Answer
Sunlight is not scattered because the Moon lacks an atmosphere
The sky remains pitch black near the Moon because, in the absence of an atmosphere, the sunlight illuminating the lunar dust is not scattered toward the observer's eye from directions other than the direct source.

Related Questions
Why does the sky appear blue during the day on Earth?What is the primary reason space appears inky black when viewed from orbit?What process is responsible for bathing the Earth's environment in diffuse blue light?What concept describes the difficulty cameras have capturing both the bright white of a spacesuit and the faint background stars?Why do photos taken from the sunlit surface of the Moon show a pitch-black sky?If you held up a pane of glass in space, what would happen to starlight passing through it?What is the fundamental reason stars are often invisible during a daytime EVA?Under what condition can astronauts immediately see stars while performing an EVA near the brightly lit Earth?How does the blackness of space affect the observed intensity of colors on illuminated objects like Earth?What causes sunlight to be redirected toward an observer's eye on Earth, but not in space?