Frontmatter separates what a document is from what a document says, which lets tools build indexes, feeds and sitemaps without parsing prose.
Without frontmatter, a static site generator must parse the prose to find the title, the date and the tags. Parsing prose is brittle: markdown headings, first paragraphs, and regex all fail on the same edge cases (nested quotes, escaped characters, mixed languages). Frontmatter fixes the shape: the metadata is declared once, in a predictable format, at a predictable position.