Check this option to rotate the header and footer together with the page, so that they always stay along the same edge of the sheet.
For example, on an A4 page the header and footer are always printed along the short side of the sheet. On a rotated (landscape) page, the main content runs along the long side of the sheet, while the header and footer text stays along the short side — it appears rotated 90 degrees clockwise.
Option is checked — the header and footer follow the page rotation and stay along the same edge of the sheet:
Option is unchecked — the header and footer keep their horizontal orientation relative to the page content and are printed along the long side of a rotated page: