Hello!
noelberg is correct, imho. What you describe is termed "association", in psychology. Basically, the fish recognises it's keeper and eventually develops an association between the face and the food. Although food doesn't always appear with the face, it does on sufficient occasions for the fish to think "food!" when the face appears.
I'm sure you've all tried this at some point: I approached my tank just now, and my tetra came to the front of the tank. I deliberately held my hand up as if feeding them and they got all excited. My new danios didn't have a clue and weren't interested. They'll gradually learn the association and come to anticipate food when they see me.
What I've droned on about is a simple form of learning, but we humans also learn by association too. Anyway, I'm starting to ramble...