But that is a ruse. The character of Socrates knows the answers ahead of time, or at least most of the possible paths the dialogue could take. Otherwise he couldn't achieve the 100% success rate of guiding his partner to reveal the essence of whatever the original topic was.
If he was hiding his ignorance there would have been fruitless digressions. If he was an ideologue his incisive questioning would be the hypocritical response to his partner pointing out a fallacy in his own reasoning. If he was a troll he would have added nothing relevant to the discussions he interrupted.
Edit: typo