The file owner may have chosen to share with everyone, either deliberately or inadvertently, using the "Anyone in this group can find and view" permissions. Therefore, you might come across documents from other teams in your search results.
However, please be assured that your files will only appear in search results if you purposefully grant permission for anyone to find and view them.