Learning is very much a multi-sensory process. The act of writing is part of the learning - the two-dimensional shapes your fingers trace actually help cement the memory in your brain. (And no, simply clacking away on the keyboard is not the same.) As these authors [1] say: "the additional context provided by the complex task of writing results in better memory."
[1] https://journals.sagepub.com/doi/pdf/10.1177/154193120905302...