that is because god makes the night pass into the day and makes the day pass into the night. god is all hearing and all seeing.
ذلك بأن الله يولج الليل في النهار ويولج النهار في الليل وأن الله سميع بصير