I doubt XW understands either. Who knows what is going on? She could be feeling good because she is living the fantasy that you two will stay close friends (which really does not work.)
The question is this: why is she staying with you and how is it working for you?