The functional role of the page number is simple: it provides order and sequence to a text. And while it is a supremely utilitarian design element, more thought is put into it than you might imagine. Should it go at the top or the bottom of the page? In the right or left margin? Or in the center? These are all conscious and deliberate choices made by designers.
Source: What of the lowly page number