Headers are the titles or subtitles that help distinguish the topic and the text of the articles. In Google Docs, MS Word, and several other text editors, these are usually visible in bolder or bigger sizes.
Header optimization is important because search engines like Google do not read your entire text to get an idea. They use hierarchies to understand whether data is useful or not.