It is correct, but you don't see this very often. The "it" refers to the situation just described: not a student, but studied hard. " In other words, she was not a student, but she studied hard.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.