This happens very often in small towns because not many people feed this animal and therefore it can start following the first person who gives it food. It happened to me once as a child, when I gave a piece of my school lunch to a homeless dog and we played with him all the way home, but when I came home, my parents chased him away