I had a very bad history teacher. On most tests, he required the class to learn about 20 different dates (only) and some facts like where a peace treaty was signed. Nobody cared what those events meant, what were connections between the dates etc. Now, many years later, I don't recall anything. I learned nothing. Was I really learning history or just arbitrary numbers? You could claim that it was real history, and probably be technically correct, but I think that's silly. In my mind, the semantics of what I knew did not resemble history at all. In contrast, my chemistry teacher visibly required understanding, and till now I can discuss basic chemistry, even though I did not exercise my skills for a long time.
It's the same with mathematics, learning algorithms means essentially you are programmed to do mechanical work, just I like I was acting like a lookup table during history classes. "Real" mathematics starts when the problem you are doing is not directly amenable to a mechanical approach.