This reminds me of when my h would write me emails from work during the day saying "I love you" and "hope you're having a good day there", then coming home and having zero to do with me.
Or, hugging me at night before bed, saying "I love you" then clinging all the way over to the other side, not so much as letting a foot brush up against me.
It does not make sense, it does seem nuts, and it is crazy. It's hard to rationalize their behavior when they are in the midst of it.