Can't say if it's pure intelligence; I think that a lot of it has to do with an iron will to fight through any kind of hardship, and a high tolerance to everything in general.
But yeah, I consider myself to be good at learning stuff but even I shudder at what she had to go through in her exams...