MediaWiki core creates ids per heading based on the content of that heading. This is used to link to the given section from the table of contents, and is also often used by users to reference specific sections.
It would be great if Parsoid implemented the same ids, possibly in addition to the current random ids (using a meta tag?).
See also the email thread starting with https://lists.wikimedia.org/pipermail/mobile-l/2015-October/009886.html. As @Tgr points out the ids need to be unique, too.