magic
or to be precise: a lot of math, ran by various pieces of metal
if you want some incredible videos of someone building a computer just out of simple electronic parts (and other cool stuff like a whole video card from scratch), check out ben eater
