Why do guys flirt then ignore?

this happened recently. Why do guys act like they like a girl and flirt with them one day and then ignore them the next day?
Why do guys flirt then ignore?
Post Opinion