Why would a girl tell you she has a crush on you and then tell you that she has a boyfriend?

Why would a girl tell you she has a crush on you and then tell you that she has a boyfriend?
Post Opinion