Why structure is the first thing to lint
Headings are navigation. A reader arrives, scans the headings and decides whether the page answers their question. Generated docs often produce a heading set that looks thorough and delivers nothing, because each heading restates the title instead of adding a section.
The mechanical failures underneath are easy to catch: no headings at all in a long document, no level-one heading, several level-one headings, levels that skip from two to four, and duplicate section titles.
Each of those breaks the exported table of contents, the anchor links other pages use, and the reader's sense of where they are.