• The first one controls the border around the printable area, aka. the page surface minus the margins: this is the Borders tab in the page dialog style
• The second one controls the header area (resp. the third one the footer area). You must first go to the Header tab and, from there, puch the More button. The secondary Borders tab allow you to set the specific header border.