Question: what is the difference between files and document library in teams?
Answer: So the files and folders are technically stored in SharePoint document library as your chat occurs in Microsoft Teams. For every channel you create, a folder within a SharePoint document library is auto-created for you. The Files tab is just a direct link to the SharePoint's document library's “channel folder.”