The moon is still out during the day because even though we can not see it much, it actually depends on the brightness of its light. If you want to go into deeper details it's actually the sun's light that is reflecting off the moon's surface, which is because of the earth's rotation. If you wanted to see the moon during the day, it would have to be above the horizon.