She says she has a boyfriend but still flirts why?

Anonymous
I am not sure about how American girls flirt. So long story in short. She said she will meet me and she said she was single. I made my approach and asked her out she said she won't go with the guest as she works in the hotel I stay. Then she says she has a boyfriend. I backed off and started completely ignoring her. She tried to get back my attention. And whenever she used to see me she kind of try get my attention bump into me and then start talking to me. I confronted her and then she said I am giving mixed signals. Then I told her I liked her and I told her I need a friend and I need to tell her my story. I have the opinion that my partner is my best friend (I did not say that). She then said come out of the hotel and if u want a friend I will be there for u. Then it started raining and I went with her back to the hotel and she said " tell me what is there and If u can't tell it here u can't tell ever". She then said me that I acted passively aggressive when she said she has boyfriend. I said what you would have done in my place? She kept quiet and I did tell her "i liked u". So then i went today to talk and she said she had very work that she will talk personal life later. Then i asked her what time she said 7 pm. I went around 7 pm I saw her bust with hotel guest so I came back and went at 9 pm. I asked I want to talk. She said we are done. I told her I am not done. She said she was done. I then said "I have very strong feeling for you". In response she said looking at my eyes "I cannot reciprocate those feelings" I said okay all the best and left. I went back and asked the reason she looked at me and said that she has a boyfriend. I said all the best and came out. I lost my room key so I came again to the desk and said "I am sorry I lost my key could u give me one" she gave me my key by reaching her hand out and looking into my eyes and I kind of kept my eye down. I am just not understanding what's happening. Girls help me with a way out.
She says she has a boyfriend but still flirts why?
2 Opinion