Why would a guy ask you if you have a boyfriend if he is not interested in you?

He asked the first time but I dodged the question because I don't like telling guys that I'm single because of bad experiences with guys. The second time he asked we were already closer than before so I told him. He also likes making jokes about marrying me.

Why would a guy ask you if you have a boyfriend if he is not interested in you?
Post Opinion