Allah (swt) made the night dark. Many scholars say that the darkness of the night is for the benefit of the human being so that he is able to sleep. And Allah (swt) made the day bright and shining.
Allah (swt) uses these signs of the universe that no one can claim that he is the one who did them, nor can claim that they were done by coincidence.