I think a better question would be, why are we still trying to write software with text editors instead of program editors.
Because source code is text. Text is edited using a text editor or an IDE.
(Hint: those are all visual or hybrid textual/visual programming languages.)