Scarlett is not in the least bit happy that her mother has moved her away from Scotland. In fact, she actually hates her for it. She also hates her father for not seeming to care that she's gone. As well as the disruption caused by moving, Scarlett is clearly feeling traumatized by her parents' splitting up.
To make matters worse, she really misses the friends she left behind in Glasgow. It hurts her that she'll almost certainly never get to see them again. It'll be difficult for Scarlett to make new friends in this town, and it'll be virtually impossible to get in touch with the children she once knew when she was five.
Even though Scarlett cordially loathes her new living environment, a place where everything is so boringly familiar, she finds herself visiting a familiar place, namely the graveyard she once visited when she was little.
As she approaches the graveyard's iron gates, Scarlett is overcome by a powerful sense of déjà vu, a feeling that she's been in this exact same situation before. But as she soon realizes, this is more than just a feeling; she really has been here before. In any case, Scarlett walks through the open gates and into the graveyard.