Why do so many students who've done extremely well at every previous stage of the education system struggle when they start a PhD?
Because the skills that get you into a PhD programme are not the same as the skills you need to complete one.
https://phd.academy