My EX

Kay
Okay so I have been with my boyfriend for some time now I love him a lot at the beginning of our relationship I would sometimes see my ex boyfriend , talk to him on the phone or he would come see me, after a while we(my ex&i)got into a argument & we had cut off all ties to each other but was still friends on social media .now me& my boyfriend have been serious & every once in a while my ex boyfriend will hit me up on social media asking "wya" "wyd" and "do I want to see him". I sometimes I find myself thinking about him sometimes but nothing sexually just thinking of him. Now my ex & I broke up because he lied to me many times & when I lied one time he didn't like it & we cut it off, I don't think he's a bad person he's just not good for me .but I want some opinions on why do u think we continue to do this to eachother & have u ever experienced this ?