macOS relies too much on applications to manage their own startup item configuration. Over time, this leads to vestigial entries building up in startup items.
Both System Settings and launchctl stink at startup item management.
One of the key features lacking in macOS is GUI + CLI options to query startup items by the very name listed in the Login Items & Extensions pane. This overcomplicates basic cleanup operations, and makes it easier for malware to hide.