She heard her stories of her losing her daughter, assuming that both are in the same boat, she decides to call her "Mama".
Having heard stories about losing her daughter, she believes they are in the same predicament and thus calls her "Mama".