"Why this is on MDN?" It is taken from the spec[0]:
> The tabindex attribute must not be specified on dialog elements.
Why is the spec like that? Uhh, I cannot find a source or explanation. If I had to GUESS, it is because it uses autofocus instead of tabindex to establish focus to the dialog when it is shown.
This really needs an explanation