Notarization is an optional step in the app development process, but macOS's Gatekeeper will soon require that any signed apps distributed outside Mac App Store be notarized by Apple.
Gatekeeper will enforce app notarization in an upcoming macOS release