When you close a Pages document, Pages still remains open.
Click the red close button in the top-left corner of the Pages window, or press Command-W on the keyboard.
To quit Pages, choose Page > Quit Pages (from the Pages menu at the top of your screen).