1. Headings say what a part is
Try firstA line is bold and size 18 but its style is Body text. Will it appear in the headings panel?
Check your answer
No. The panel lists parts with a heading style, and this line only looks like one.
A document has parts, and each part has a style. A style such as Heading 1 tells the app what the part is.
Making text bold and bigger by hand only changes how it looks. The app still treats it as body text, so it is missing from the headings panel and the contents list.