Fairly obviously they didn't, ANY similar logic system can be worked with switches - and micro-controller outputs (or logic gates) are simply electronic 'switches'.
The only reason you're really aware of it in this case is that it was commonly done in tutorials to demonstrate the operation of the device, and not for actual use.
While you're far too younger to remember it, many early experimenters micro-processor systems were programmed using toggle switches - you set the address bus with a row of toggle switches, you set the data bus with another row, and pressed a 'store' button. This programmed the set address with the set data, you repeated this for the entire program, a byte at a time, incremented the address bus as you went.