Well he had a son. If no wife that means god had a kid outta wedlock and that is a no no according to bible, So I guess he had to be married.
Oh wait I forgot he had a son with Mary who was married to Joseph, so is god an adulterer?
The bible can be confusing, with what is/isnt a sin sometimes
This would actually explain why God apparently had no problem with many of His trusted elite, such as David, having several mistresses and concubines.