I may honestly be misremembering, because I use Brave, whose behavior usually follows Chrome. At any rate, it's typical of the "Can we? You sure? You sure? You sure? OK, thanks!" anti-pattern we all hate.
That’s why sites ask you first with their own dialog, and only if you say yes do they pop up the browser dialog.