It was a secret his sister made it her dying wish to keep. I think sister's death bed promise trumps wife's need-to-know. And the fact the Jon's a Targaryen meant he could be a competitor for the throne (and reminder of Lyanna's rape and/or betrayal) and Robert would want to kill him. Ned HAD TO keep the secret from…