Here's the thing:
* The moon doesn't have its own light. It reflects sunlight.
* The Earth rotates. This means that as the Earth spins, different parts of the planet face the sun.
* Day and night are caused by the Earth's rotation. When your part of the Earth faces the sun, it's daytime. When it faces away from the sun, it's nighttime.
* The moon orbits the Earth. This means it's constantly moving, but it doesn't always follow the exact same path as the sun.
So, while the moon is often visible at night, it's actually moving through space and reflecting the sun's light. Sometimes you can even see the moon during the day, especially if it's near the sun in the sky.
Let me know if you have any more questions!