Meaning: This sentence shows the growing relationship between the girl and the talking animal as they share stories and experiences.
Choice of Words: They refers to the girl and the talking animal. Became friends means they developed a bond of friendship. Shared stories means they told each other stories.