Socrates Beliefs
Socrates is a man who deeply believes in his teachings. To search for truth in your beliefs leads to virtuous beliefs. It would not have been virtuous to flee the trial. IF you read his speech you see that he wanted them to learn from this trail. He wanted them to know that these charges were brought by vengeful people and that they were a lie. He believed that the jurors would see the truth in his statement. He did not take money for his time, he did not incite the young men (they did that for themselves). He talks about his wisdom and that the only wisdom he has is knowing he has no wisdom.
Socrates was right in staying for the trial and showing up to defend himself. His belief in the rule of law, and the right thing should be done ensured