The simple answer is that he likes you and he's trying to find out if you like him. He also might be trying to be funny or something. If your really confident, you could just ask him! Another possibility is that he wants you to "flirt back" which, is up to you to do.
Chat with our AI personalities
because there are vary mean guys out there and because some guys are so immature or dont feel good about themselves that they have to be mean to feel good about themselves or" think" they are cool
It's possible that he was just trying to be playful or entertain himself. It's important to communicate openly with him to understand his intentions and set boundaries if needed. Remember, genuine flirtation should make both people feel good, so it's important to be on the same page.