Parsoid segments documents into "mw sections" (i.e. heading-to-heading sections, as provided by edit-section links) as defined in the spec: https://www.mediawiki.org/wiki/Specs/HTML/2.1.0#Headings_and_Sections
When this was first implemented CX had no use for these so the tags were stripped: https://gerrit.wikimedia.org/r/#/c/mediawiki/services/cxserver/+/383329/
Now CX is trying to support section editing, but is doing so by re-implement heading-to-heading section markings using class names: https://gerrit.wikimedia.org/r/#/c/mediawiki/services/cxserver/+/548589/10/lib/lineardoc/Doc.js
A much cleaner approach would be to restore this Parsoid sections and use them to implement section editing, in the same way the full page article editor does.