Photographing the moon tends to challenge and confuse aspiring photographers. Images are often overexposed, revealing a bright white blob in the sky.
If this sounds like you think of the moon this way – it is a big bright light.
Therefore, the camera needs to treat it as such if you use the auto setting. You need to think of it this way if you use the manual setting. Do not let the darkness of the night fool you.
Remember that your subject is the moon and it is bright.
The examples tell us that the camera recognizes the brightness of the moon in the night sky.
If you are still learning about the camera setting, 1/500 (of a second) is the shutter speed. In other words, how long it takes the camera to take the photo.
In comparison, if you photographed a tree in the same light of the night, you would need a much slower shutter speed to adjust for the loss of light, perhaps 10" (seconds), for example.
Note: image blur is evident in the close-up caused by the extensive zoom range, with the moon's movement, and a slight breeze affecting the camera on the tripod.