SharePoint Online is a software as a service (SaaS) product that comes with your Office 365 tenant. The following image depicts a typical scenario in most organizations that uses SharePoint Online, with synchronized users to Azure AD and the source of the identity being the on-premises AD: