The more HP you gain as your characters level up, the more notches will be added to the bar. It's just a simple design to indicate when your character's maximum health increases.