Assume I have this html:
<main>
    <form>
        <label for="field">Label</label>
        <input id="field" type="number" min="0" required>
    </form>
</main>
In javascript if I type field and press enter, it'll give me the reference to the input element:

Why this is happening? I can't find anything related
 
    