John introduces Nicodemus with an unusually dense set of credentials. He is a Pharisee, a ruler of the Jews, and later is addressed as 'the teacher of Israel.' He comes to Jesus at night and respectfully calls him Rabbi.
The conversation therefore does not pit Jesus against an ignorant outsider but against the limits of an educated insider's understanding.