Why would a guy call himself an idiot?

I'm talking to the guy I've been seeing for a little while and all of a sudden he says " remember when I did and that. I'm such an idiot"
So I corrected him and told him that he's very smart. Was he looking for a compliment or does he have a low self-esteem?
Why would a guy call himself an idiot?
Post Opinion