It's kind of interesting that we started computing with dark mode and when we jumped to windowing systems, for some reason that coincided with move to white on black. Maybe it was more familiar for office workers used to paper.
There's no absolute reason why the evolution happened that way that I can say. It was all more or less arbitrary design decisions.