The "back button" allows you to return to the calling page; if you remove that page, page 2 in your case, by calling ShowPageAndRemovePreviousPage, you cannot return to it, of course.
Note that, however, if page 2 calls page 1, the back button would return you to page 2, not to the MainPage, because the button takes you back to the calling page.
You probably need to add a home button on page 1 to "jump" to MainPage.