Why would someone breakup with you but when asked if they still see a future with you they say yes?

Is this valid? Like maybe we need to work on ourselves so we can be a stronger couple or is this a way to soften the blow and give you some hope until that eventually dies?