Why would a married man inquire to you about ruining your marriage after saying he's happily married?

So were both attracted to each other. He seems to be captivated by me and everything and just thinks I'm so beautiful but I just wanted to tell him how I feel I didn't think he would say anything about having an affair with me. Maybe I should of told him that I just wanted to say how I felt but I didn't say nothing about having an affair and he does. So what was he thinking about in his mind?
Why would a married man inquire to you about ruining your marriage after saying he's happily married?
Post Opinion