When playing the guitar, you can't see what your left (on the fretboard) and right (with the pick) hand are doing at the same time so muscle memory is the only viable option.
Similarly, you can't really see what your hands are doing on the keyboard and what is actually being typed on the screen so you have to pick one to choose. Looking at the screen is the obvious choice, but for typing practice you might actually want to look at your keyboard.
I learned more ergonomic touch typing using two tricks. The first one was to train using the Dvorak keyboard layout, although I don't use it normally. It just made me hold my hands in the right place on the keyboard. The second was getting a blank keyboard with no inscriptions on the keys and look at the keyboard, not the screen when typing.
Also, musical instruments are more consistent than computer keyboards. I play saxophone, and it's easier for me to move back and forth between soprano and tenor sax than to move between desktop and laptop keyboards.
For the same reason, a pianist doesn't need to look down at the keys unless he's making a large jump across the keyboard (and even then, muscle memory often serves him well).
Nor does a guitar player need to look at the strings he's picking or fingering. A common technique is to anchor your righthand pinkie on the soundboard to serve as reference point ("home key"). From there, your muscle memory knows the rest.