You have to specifically grant permission to websites to let them send you notifications, Safari will ask you the first time you visit the site similar to how sites can request your current location. You can change these settings later through the Safari preferences.