Why do girls start randomly giving a guy attention?

This girl started flirting with me by pretending to be mean towards me, but we both laugh at the end. It's almost like a teasing thing

Why do girls start randomly giving a guy attention?
Post Opinion