I am going to assume that its a genuine set of questions.
Sun is not visible because its on the other side of earth in the night.
Moon is not visible because its on other side of earth in the day.
People sleep at night for the simple reason that in the old days they could only get work done in the day because they couldnt see in the dark not to mention the sunlight actually improves well being and energy.