It probably did. I was in the us this summer and was similarly confused that the pump wanted a us zip code for a foreign card. I input the zip for the address i was staying at and it worked...
Huh. I'd always assumed the zip code was validated against the card's billing address but maybe it's actually for some kind of market research. I'll have to try myself.
Following up: I tried a valid but incorrect zip code recently and the transaction was declined. Presumably this is because there is a valid one associated with my account?