Back in the day we were writing code on paper (or on punched cards, using them as a paper substitute, as there were a lot of them left over from the Soviet times and they looked very "computer-y"), so even during computer classes you didn't necessarily need a computer. Not that I really think that it can still work in the year 2025 and beyond...
I was just talking to younger coworkers about this recently. Mid-90s to early 2000s: FORTRAN, COBOL, C, and C++ classes all had handwritten code parts for homework, handouts, exams, etc. This wasn't just pseudocode, you had to have full syntax, variable declarations, correct spelling of functions, etc. You frequently had to show code optimization, debugging, etc even on paper. Wild times!!
* All of those classes also had lab time (some dedicated, similar to a chemistry class), info on how to get the IDE if you had $ access to a computer at home, and alternatives as well.
Personally, I see more value in pseudo code (written or typed) and sketch type diagrams (analog or digital) than handwriting code. However, it was WILD and amazing to watch the gray-hairs of those days debug your code on paper!
Studied Fortran 65 as elective, submitted assignment/exams by writing actual code with pencil paper. Never got access to the cool looking machines in the actually cooled room. I am not kidding that I really enjoyed that paper compared to my other papers.
In my Uni we still had some coding test done with pen and paper (2014-2018), and AFAIK, they're still doing them. I even done a part of an exam in assembly with a provided Xilinx PicoBlaze assembly mnemonics list.
I don't know why people demonize them. If you know the syntax you're asked for, you can write in that language, and if you were asked to write in pseudo-code some algorithms, you should be able without any additional computerize help.