Hello there!
With the new editor we’re trying to keep it 100% Markdown compatible, with CommonMark placing a separator directly below text is an alternate way to make a heading!
This question was brought up before on the forum and some more insight from a dev can be found here: Adding a separator makes the text as big as H2
Hoping this helps!