Your first comment:
> and does not have builtin functionality to export notes (e.g. a menu option to do so)
That's incorrect: you can export to PDF. Certainly not as handy as Markdown, but it's there.
Additionally, Apple offers AppleScript as a way to do even more.
No, this isn't an open source piece of software. If that's your sole criteria for "good" then you're right, it's bad.
- Audacity "Saves" audio projects to its native .aup, but can "Export" them to .mp3 or .wav
- Photoshop "Saves" .psd files, but "Exports" them to .jpeg
- Gimp "Saves" an .xcf, but "Exports" to .png
- Apple Notes "Saves" notes to its own sqlite database, but "Exports" to txt or pdf via a menu item
This technically satisfies your comment above, which is why we speak of moved goalposts.
It would be great if apple notes could convert your note library to ENEX or a .zip file of HTML items.