It is possible to be both unlettered and not simple, and simple yet not unlettered; but here both coincided (that is, both lack of learning and simplicity). Therefore the Jews were amazed when Peter and John spoke and orated. From where then did they obtain this knowledge that Peter and John were such? From the words of Peter and John themselves. For Luke does not simply say "they knew them," but "they recognized them, that they had been with Jesus" during His suffering. At that time they alone were with Him. And the Jews saw them then as humble and lowly; and it was precisely this unexpected ...change that especially struck them, for the one who then could not endure the gaze of a questioning servant girl now comes into the midst of the chief priests themselves and into the Sanhedrin and speaks with boldness.
Source: Commentary on Acts