Memory and thinking processes are reactions and synapses firing in the brain.
It's not "just" in the sense that there's a lot of emergence and complexity when these things all work together but it is "just" in the sense that these are all physical unmagical processes.