Page Setup does not remember the header footer per file.
If you open a recent file you'll get the header for the last file that the header/footer was edited. Not the specific one for that file. If you launch SMath from the desktop you'll get the default header/footer.