Why does he say this to me if he’s married?

Long story but I’ve been friendly with a guy for years, through meeting at uni, moving interstate, overseas and we’ve always come back to each other, I mean just checking in and being friendly, but I think there’s always been something there.

He denied feeling feels for me so I’ve kept my distance and he’s married now and I’m in a relationship with someone I love…but I still feel drawn to this other guy from my past.
I wish I wasn’t but it’s such a weird strong connection almost, I’m not sure what to call it even.
We reconnected a little while ago just to check in like we do and I was asking him how he’s been and he says he and his wife life separately now due to work and life etc he asks if I have a partner, then he says if I’m visiting where lives I can stay there with him….. I just said no that’s ok but thanks for the offer…I didn’t know what to say and now things are a bit weird.

? I’m very confused, and WHY would he say those things…I don’t get why he had YEARS to be into me and didn’t but acts into me, and he’s married and I’m happily with someone…help?

Why does he say this to me if he’s married?
Post Opinion