Why did this guy not mention he was married earlier?

So I’ll try to keep the short- I’ve known a guy for about 5years on and off, we met while at Uni and he knew I liked him and would act into me but he said he didn’t feel the same.
Fast forward to recently and we reconnected again online because he moved away…we talked about our lives etc and kept things friendly as I knew he felt as he did. I said to him it’s hard for me to be friends but I’d still love to be and he replied ‘I’m happy with that, whatever you feel is best xx’…then in one message I made a joke of being single to see if I could get insight into his current status and he says he’s MARRIED.

I have not replied since as I am a bit in shock and I feel weird about it all now, but still want to be friends.
Im just a bit confused, he used smileys in his messages and replied fast, sometimes as soon as he woke up I think…but never a mention of her or anything, and once I mentioned having a chat over the phone and he said ‘not right now but I’ll let you know sometime’….. what the hell?

I want opinions to why he didn’t mention being married sooner and what was with his behaviour, he seemed into me but not…I’m confused!

Why did this guy not mention he was married earlier?
Post Opinion