Why do we use Roman numerals for some page numbers but Arabic ones for others?
Solution 1:
Briefly put, Roman numerals are an alternate form of enumeration. It makes it easy to see the difference between the foreword and the actual content of the book. This is also the reason it's used in nested lists.
The history is that page numbering and Arabic numerals started to become popular in English at about the same time. It wasn't until centuries later that prefaces began to be numbered like this.
History of page numbers
I found a source that explains the history really well:
Numbering pages started out not as a tool for readers but a guide for those who physically produced books. In Latin manuscripts copied in the British Isles as far back as the eighth or ninth century, numbering was sometimes used to ensure that individual sheets of parchment were collated in the correct order. Use of numbering was sparse. It’s been estimated that around 1450—just before the birth of printing in the West—less than 10 percent of manuscript books contained pagination.
Fifty years later, the proportion of now-printed works with pagination was much higher. Part of the change reflected the new role of page numbers. Rather than strictly being tools for compiling leaves in the proper order, by the 1510s scholars were starting to refer to page numbers of printed volumes in their own writing.
When Did Books Get Page Numbers—and Are They Even Useful Anymore?
Please note that this only applies to the "body" of the work. Also, a number of the earlier works had folio numbers, not page numbers. The preface material would usually not be numbered at all (it would sometimes be numbered with the body, other times it would have numbered sections). This book (1575), for example, has no numbering in the preface (except for what was penciled in later), although the rest of the volume is foliated.
It should also be noted that well into the 17th century some books still didn't have any page numbers.
Roman vs. Arabic
Roman numerals were the original number system used in Europe. Fibonacci is credited with popularizing Arabic numerals in Europe in 1202 with his book Liber Abaci. The book Numerical Notation: A Comparative History gives some more information about this.
English didn't see any Arabic numerals for quite some time, however. And it also took some time for the numerals to become popular and eventually replace Roman numerals in almost all contexts. Apparently, an important factor was the printing press, which created a new literate group unattached to the traditional Roman numerals.
The first time an Arabic numeral was used in an English book was William Caxton's book Reynard in 1481. It was a signature mark, "a2", which can be seen here at the bottom of the page. It was only the signature mark(s); the rest of the book used Roman numerals. Caxton published 6 books like this, until he went back to Roman numerals for the signature marks in 1484.
More and more books would have a mix of Roman and Arabic numerals starting in 1505 (where the date used Arabic numerals). The paper Numbering by the books: the transition from Roman to Arabic numerals in the early English printing tradition looked at all the books in the Early English Books Online database between the start of English printing and 1534 that contained both Arabic and Roman numerals (which was 55 books). Of those 55, there were 26 with Roman numeral foliation and 17 with Arabic numeral foliation. In 1523, the first book to only use Arabic numerals was published.
My own research found that only the earliest books (before 1600) used Roman numerals as page numbers (for the body). Prologues were either part of the body in terms of pagination or were not paginated at all.
Prefatory Material
The earliest instance I can find of book in English with separate pagination for the prologue and the rest of the book is Moderation truly stated (1704). The preface, entitled "A Prefatory Discourse" is over 50 pages, so it's convenient to have it be numbered.
Solution 2:
Roman numerals are used specifically to enumerate the pages of the front matter — title page, foreword, etc. — whilst Arabic numerals are used to enumerate the pages of the rest of a book.