I dont get this married dude?

So I work with a married guy in my job who is 50 and I am 25. We have met on a few work nights out. He has asked me questions about how many men I slept with since I broke up with my boyfriend and he is always keen for me to confide in him and he asks me a lot of questions about myself when we are out. He has started to text me on teams in the morning and he will literally text me all day like one message after the next for hours and if he is going on lunch he will say he will text me after his lunch. He also loves when I compliment him but then he changes sometimes and tells me he has a wife and that nothing will ever happen between us. But then he is back texting me the next day and asking me questions about my sex life and myself. What is his game?

I dont get this married dude?
Post Opinion