As I recall, the priest of this church is fond of dogs, and his had died recently, which was why he allowed the dog to continue coming into mass every day.
The answer is staring them all in the face. The dog needs somebody. Somebody needs a dog. They’ve been brought together.
as per the article, the parish community as a whole has adopted the dog, giving him a place to stay and food and water.