It is an interesting question.
As a muslim, it doesn’t matter squat to us if Jesus was married or not; and I see nothing in Christian theology that would be altered if he were married.
I do know that the “all sex is evil” notion was a trend in early Christianity (around 150–250 AD). And the notion that the Fall of Man was caused by woman (an interpretation not supported by Scripture) had legs for a VERY long time in Christian history.
So, it may be that if the Gospels were edited around that time like many textual critics believe, the editors were trying to put some distance between Jesus and any woman who was more than just a disciple.
It’s been pointed out by more than one scholar that (a) Mary the Magdalene seemed to be just as much of a disciple of Jesus’ as the 12 were, leading to (b) the Catholics sullying her by making her out to be the unnamed prostitute that Jesus saved from death.