(Before someone told me that he was a vegetarian)
I had not known that he was a vegetarian.
I had never known that he was a vegetarian.
It seems that the first sentence is correct while the second is wrong or doesn't make sense. I have no idea why they are totally different: one is correct, but the other is wrong. Could you please explain why?