Rulers need to know who has what, who agreed to what and who is getting what. Once the tribe grows to beyond about 200 people some sort of record keeping is required. The larger the group the more complex the record keeping.
Lawyers probably produce more text than any other occupation.