In the same way that human brains are just predicting the next muscle contraction.
Except that's not how it works...
To be fair, we don't actually know how the human mind works.
The most sure things we know is that it is a physical system, and that does feel like something to be one of these systems.