What was it all about if she has boyfriend?

So we never actually talked but we make frequent eye contact. Many times i catch her looking at me when I am not looking and sometimes we make prolonged eye contact (like 3-4 sec) the eye contact was so frequent that i thought it was no coincidence and she actually likes me and there are many other signs too like trying to be physically close with me. so I confessed her and she said she have boyfriend. So what was it all about? Was she just playing with me?
What was it all about if she has boyfriend?
Post Opinion