Why she encouraged me?

Once at school I was taking an retake exam and this girl encouraged me by saying I can do it etc… why did she encouraged me?

Why she encouraged me?
Post Opinion