Why is it that animals follow you or solicit when you own food?

Why is it that animals follow you or beg when you have food? What inspired this question be something that happened to me today. On campus, there's a man-made duck pond. There were seriously of ducks on one side of the pond just swimming. There were like 3 or 4 on manor. As I was passing by about to approach the bridge, I started audible range lots of quacking from the few ducks on land and the ones swimming (must have been at lowest possible 15 in the water). I had just finished ingestion in my car and I had a cup of iced coffee from McDonalds that I be drinking. As I walked to the bridge, the ducks on land started quacking and following me. I'm assuming they did all that because I have food. So, why is that? Is it greed? hunger? survival? All of the above? Tell me! :-)
because they're animals and most animals are lazy to gain there own food
The reason they do that is because people enjoy fed them before and so they have come to associate empire with food. This is why wild animals shouldn't be fed even though it looks cute. It can turn into a really annoying way and many animals become downright aggressive when they can't get food.
Answers:    They very likely saw you consumption & have associated people eating near handouts. Given the opportunity most animals are beggars...they haven't been properly schooled in the benefits of earn & spending money.

As with all flock & herd animals, the follow the captain...every quack means something to a duck, so if you don't want to be singled out & begged for a handout, be more discreet in the region of you lunch time dining.
What is the typical decibel horizontal of a macaw squawk?   What Parrot is this...? Help?   Would a Brussels Griffon puppy be capable of live near two budgies?   My pet cockatiel have be tamed wrong! Please facilitate?