Having a writing system and using it to record history are surprisingly independent. For example, in ancient India they wrote all kinds of stuff down, but virtually none of it is history. Most of what we know about the history of India comes from the records of other peoples who came into contact with the Indians.