The documents area contains documents that can be uploaded regardless of tasks and repository. Many of our customers use this area for general, non-changeable Office-documents.
The files section displays all files that have been uploaded in the entire project (of tasks, documents, wiki pages, etc.).
The repository is completely separated from that and can only be edited via SVN or git.