Why would he say that particularly if it never went anywhere?
Why did he tell me we couldn’t be friends?

Why would he say that particularly if it never went anywhere?
It may not be him at all maybe his wife don't like him talking to other women around and he is just trying to walk the line his wife has set for him
I doubt it’s that…he made the comment “I don’t have friends my wife doesn’t know about”. I guess meaning I’m not the type of person he’d integrate as a friend in his life.
Asker: That would be exactly the point. She knows you his friend and can see through you two. So she's told him specifically not to speak to you and is keeping a keen eye.
I'd say he's attracted to you and thinks you were flirting with or attracted to him. So, he decided to pull a full stop. Rather than have temptation. Whether it was real or imagined.
Opinion
1Opinion
Because he realizes there is no point.
Why isn’t there a point?
Superb Opinion