Meaning: The stranger is showing their happiness by giving the dog a small gift or reward.
Choice of Words: Stranger is a person who is not known or familiar. Gives means to hand over something to someone. Dog is an animal often kept as a pet. Treat means a small gift or reward. Happily means feeling or showing pleasure or contentment.