Written explanation kept beside a thing so others can use it. Documentation is a claim, and it drifts from the truth unless tended.
Latin documentum, a lesson or proof, from docere (to teach); the collective written record kept beside a thing.
Its root is a lesson meant to teach, docere, not a note left nearby for reference. What is documented owes a reader real instruction, and a lesson not kept up eventually stops teaching anything true.