Because there's no point in having them up in the dark, especially since people sleep at night and such. In older times, they would switch flags with work shifts, but now they just use schedules and bells, so it would just be extra work to keep changing the flag every time a shift is over.