Eirin was found as an infant by monks of a secluded mountain order occupying the range between the Land of Frost and the Land of Lightning, who raised her for a few years before their destruction. There is no record of her origins. No family. No birth document. Nothing. She emerged from nowhere, which is, for Jashin’s children, entirely accurate. They had taught her their taijutsu style — the White Crane — and techniques predating the Sage of Six Paths. Eirin absorbed it all, how to be at peace with nature, how to remain kind in a cruel world.
The Senju led the strike that destroyed the order. The Uzumaki and the Sarutobi concurred. Three clans had reached the same conclusion: the monks preserved knowledge that predated the Sage of Six Paths, and that knowledge had no right to survive into the current age.
After the destruction of the monks, an Uchiha pursuit squad investigated the wreckage. A five-year old Eirin was found in the rubble by a twelve-year old Madara. She was still in shock of what happened, and Madara thought she was a ghost. Despite that, Madara handed her dried persimmons — hoshigaki — from his rations. This was the first and only kindness she ever received from shinobi for a long time. She looks up to Madara, without knowing his name, and he becomes the face of kindness she holds on to. Before he leaves to join the pursuit squad, Eirin thanks him and tells him his hair is "pretty and fluffy". Unbeknownst to her, this becomes Madara's primary reason why he never cuts his hair.
Rationing the dried persimmons Madara gave her, Eirin realizes nature chakra is keeping her alive as she wanders around the mountain range. Berry bushes would pop out beside her, animals would help her forage, and her small memories of her cooking for monks would form. She would try to experiment with cooking and her techniques. Sometimes, she would create autonomous snowmen to play with.
Matatabi finds her at some point, thinking a sage was in her territory, only to find a child causing a nature chakra embargo in a five-kilometer radius. Sensing that this child has a soul and chakra so strange — similar to the tales of the shamans that walked before the Ōtsutsuki even arrived on the planet — Matatabi takes her in. Eirin, thinking that she had finally found her mother, immediately bond with Matatabi. She has blue hair and Matatabi was blue, so why not? Later, she would be disappointed that she isn't going to grow up as a cat.
Because of this connection, Eirin is introduced to the other tailed beasts — particularly Shukaku, Son Gokū, and Gyūki — who become her mentor and foster family in various ways: Shukaku teaches her the concept of seals and tea ceremonies which she develops tremendously, while Son Gokū and Gyūki refine her taijutsu.