I actually remember from my software ergonomics course at university that black on white is better than white on black. I guess it stuck because it surprised my, I always considered the MS-DOS console easier to read. I do not remember any details, but I guess it must have been about working in a well lit office or something like that. Dark mode is probably only advantageous because we nowadays use screens in a lot of situations with all but ideal lighting.