Yeah, I forgot about PolicyKit, which isn’t specific to KDE, KDE neon, or even Ubuntu.
I believe this is the same mechanisms used to provide the password prompt when saving a system file, and for the Admin mode within Dolphin/
https://discuss.kde.org/t/how-to-make-kde-stop-asking-me-for-the-password/