Approximating the output is the goal function.
Intelligence in the mechanism is the consequence of trying to do that efficiently.
Also let's not forget that everything computable - including human thinking - can theoretically be turned into a finitely-sized lookup table, so there's no difference here without asserting human brains work by magic.