When you click a link for an email address or website, your Mac opens the app you've set for that kind of link. Mail is the default email app and Safari is the default web browser on your Mac. If you install other email apps or web browsers, you might want to set them to open when you click an email link or web link.