The Shared Drive in Google Drive is used to store, search, and access a team’s files. The files in Shared Drive belong to the group of users and not to an individual user.
If any of the members of Shared Drive leaves the team or organization, still that Shared Drive files are accessible to other members of that Shared Drive.
Read this article to know more about Google Shared Drive — An Overview