She never outran Kaguya. If you referring to Juubi hand, she just manage to ran from it for a while but nearly get caught by it bcus Kakashi saved her.
But that is not Kaguya in human form
You must be registered for see images
So in the long run Juubi hand movement still much faster than her
Its like Nissan GTR vs Tesla. Tesla has good starting acceleration compare to GTR but in the long run GTR will overtakes Tesla
dude don't start with cars please lol
at the end of the day it's all
PLOT and scenario because some characters are secondary and not needed all the time in the panels like stupid decorations.
that's the case for Sakura in both situations and it doesn't turn her into a badass with godlike powers at all since she's not like that with 100% of her opponents and/or 100% of the fights (for example she wouldn't have win against the puppet master without the old granny using her like a weapon for sure, again plot and scenario play here).
Sakura is good for medic stuff and destroying the land/some clones/puppets, she's not a 1VS1 fighter and i don't remember a single fight in the manga where she won all by herself unlike Sasuke or Naruto for example.
i mean it's obvious and not the first time it happen in the manga.
imo Kishimoto/Ikemoto created those scenes to make her appear again because she was irrelevant for too much time before (with Kaguya she was afraid and Kakashi was saving her ass and then helping Obito, with Shin she wasn't near the scene but in hospital) or doing nothing good, doesn't make her great but it give relevancy and time screen to the character.
idk how to call that in english, in french it's called "tomber a pic" aka you've arrived just in time from nowhere.
also Sakura benefited from a surprise effect in each situations, she was not expected and that's how it was written for sure because the reader didn't expected her to jump into the fight since she was nowhere to be seen and so did the opponent she punched.