I know Kaguya was flying straight into her.
But still, Kaguya is literally millions of times faster than Sakura.
Sakura landing a hit is like a normal human catching a speeding bullet, it just can't be done.
Kishi screwed up.
could simply have been a case of Kaguya's arrogance and tendency to look down on those she doesn't see as a threat backfiring.
At one point Kishi used Kakashi to point these traits to the readers...saying something along the lines of Kaguya not caring about anyone outside Naruto/Sasuke at all.
This trait was again shown in the gravity dimension. When she fixated the gravity to only affect Naruto and Sasuke...which allowed Obito and Kakashi freedom to successfully save them.
Kakashi (note...the one who first brought up the fact that Kaguya only had eyes for Naruto/Sasuke) was the one to plan her sealing...her indifference to those she doesn't deem a threat could've been something he was betting on.
So she may have seen Sakura and proceeded to ignore her as Usual...not deeming her a threat...which is why Sakura had those lines while hitting.