By saying that he was
A: telling you how screwed up he is
B: that he's that way and letting you know he's going to do nothing to change.
C: and he wanted to see how you would react to that info. You took it in stride so he knows now he can carry on and behave like a Horses A$&!
If he told you those things and sentence ended with " but I'm in therapy to deal with these issues." it would be a different story. But that wasn't the case.