If you are close enough with her then it shouldn’t be a problem to ask her why. If you are just classmates and don’t speak that much then you could ask her politely like ‘oh, I didn’t expect that haha, if you don’t mind me asking, why did you decide to leave? unless it’s too personal.’