This paper talks about the history behind how "writing" code came to mean "typing" it. Originally, the very first programming notations were handwritten. Interestingly, they weren't called "languages" either, until FORTRAN introduced the typewriter as semi-direct input. See here: https://dl.acm.org/doi/abs/10.1145/3313831.3376731