What does it mean when a girl randomly starts talking to you?

The other day at school I was walking and this girl who was walking in my direction has said something kind as a joke to me and then continued walking but why did she unnecessary starts talking to me?

What does it mean when a girl randomly starts talking to you?
Post Opinion