Why would he suddely stop liking me?

Me and this guy were texting for 2 months. It was a long distance thing but we planned on seeing each other. He was crazy about me, everything was going great and when he would do something i dont like he would say sorry and fix his behaviour. He saved my selfies on snapchat. But then we talked about ex‘s and he told me that he thought he was over his ex but he still can't forget about her then i told him that i dont wanna be texting anymore if he isn't over his ex and he told me he understands. He also told me that i have everything he is searching for but suddenly he didn't have this feeling like when he wants to be in a relationship or loves someone honestly. Why would he do all the things for me and then tell me this? We still follow each other on every social platform and we ended it very mature and on good terms but i really like and miss him..

Why would he suddely stop liking me?
Post Opinion