Why did she talk to me out of nowhere?

Once after school I was at my locker and this girl in my class told me bye as she was leaving and came by me, and then told me ”You'll make it” afterwards since I had a test to retake, why?

Why did she talk to me out of nowhere?
Post Opinion