Roles determine user access to cases, contacts, and opportunities, regardless of who owns those records.

user role hierarchy can be used with with sharing settings to determine the levels of access that users have to your Salesforce org’s data. Roles within the hierarchy affect access on key components such as records and reports.

Documentation User Role Hierarchy