 The Torah was written by scribes, but they were experts in the law. They were literate people in a world where not that many were literate. Jews were probably a great deal more literate than other people because of their dependence on sacred scripture.