It's probably because the app you've deleted is preinstalled in macOS and can't be uninstalled. Or it is a third-party app that contains leftovers that protect the app from being completely uninstalled.