Reciprocation? I am not remotely a 'popper in', but I would feel a certain obligation to someone who offered to share a knitting pattern or gave me a gift of food, unless it was an 'over the fence' thing, rather than a gift given on my doorstep.
Also, if you aren't already on social terms the neighbour might have seen them as a way of reaching out, maybe because of loneliness, so the offer of coffee could have been made on those lines? I wouldn't read too much onto it, or go into full-on deterrence mode unless they become persistent - it was probably well-intentioned.