A computer is not just a playback machine like a mechanical loom.
What is it then? Magic?
The fact that you don't understand how it works doesn't make it magical.
Every program ever written for your desktop computer was ultimately "compiled" into a long series of simple binary logic operations that your computer blindly repeats at very high speed. For every set of inputs, it recreates the same output --- kinda like a loom mechanically weaves a particular pattern at high speed once it has been "programmed" using a set of punch cards not unlike those once used to program computers.