Operating systems allow users to log into email accounts. These can then be used by applications to sync with online accounts:
Evolution on Ubuntu
MacOs Mail and Calendar on Mac
Can Thunderbird integrate with OS accounts to make it easier to switch to Thunderbird if a user already has acounts set up?