Why would a guy gift me something when I say “I like it?

I liked a toy 🧸 and I said “I like it so much.”and he gave it to me as a gift.

Updates
+1 y
Today they gave us Mooncake gifts for holidays and he told me I can have his cakes if I want, because he doesn’t eat them.

I think he is just being nice and friendly.
Why would a guy gift me something when I say “I like it?
Post Opinion