SharePoint Document Libraries
A SharePoint Document Library(SPDL) provides a secure place to store files where you and your co-workers or classmates can find them easily, work on them together, and access them from any device at any time.
If you are working in files by yourself, or sharing only a few files with others that
are not part of your team, you should use OneDrive.
If you are sharing files and folders as part of your department or working groups,
SharePoint Document Libraries would be the better option.
To read more about which option would be better, visit Microsoft Supports article:
Should I save files to OneDrive or SharePoint?
Automatically shared with team members: when a SharePoint Document Library is created, whether that is directly from SharePoint, or from a Microsoft Team, all team members are automatically added to access the files and folders.
Files and folders that are part of your department or team can be stored and accessed within the SharePoint Document Libraries. While many people think they are storing documents in Microsoft Teams, these are actually stored in OneDrive for Business or SharePoint Document Libraries. They can be accessed through Microsoft Teams.