Because dark mode helps them to concentrate on the screen longer. It's easier to write the codes on a dark screen as compared to a white screen.