You are misunderstanding the P8 score. You can google to see how it is calculated.
Firstly, it makes no sense to single out her KS2 maths score, because the KS2 prior attainment used in the P8 measure is an average of the scores for English and Maths. So, instead, let's assume she got 120 for both, so her P2 average is 120.
The KS4 measure is her Attainment 8, which is a max of 90.
Her individual P8 score is measured against all the other students in England who also got 120 in their SATs and who went to state secondary schools. So, if your example student got the maximum 90 for her A8, and every other 120-average student also got A8 of 90, then her P8 would be zero.
In practice, most will get less than 90 (and obviously none will get more than 90). Most of the high KS2 attainers will go to schools that aren't selective, and which vary in quality. Many will have family and social issues that reduce their grades.
Many will also go to private schools, which aren't included in the measure at all.