Legend within some elements not working with VoiceOver shortcuts

Use the rotor on iOS or the VO+Cmd+J shortcut on macOS to navigate to the next form element. The legend will not be announced when the virtual cursor is at the fieldset when the legend is within the main, header, nav or aside element (first example). Within a div, section, article or footer element it is working correctly (second example).

Within main = not working

Do you already have an account?

Within a div = working fine

Do you already have an account?