When querying account objects on the XRP Ledger, why keep paginating if the page isn't full?

When using account_objects to inventory the ledger objects associated with an account $XRP , limit sets the maximum number of results per page. The server may return a page when it reaches its scan limit, especially if the request also filters objects by type. Having fewer results on the page than the limit does not mean there are no more matching objects.

Suppose you filter for only one type of object, which is scattered throughout the account's object directory. The server may have scanned many entries on this page but found only a few matches. If the program stops when the results don't fill the page, later matches will also be left out of the report.

The official documentation specifies `marker` as the stopping condition. If the response includes a `marker`, include that value in the next request to continue using the same ledger and the same filtering criteria. Only when the response omits `marker` does it indicate that pagination has reached the end. An inventory program can record “how many entries were retrieved” and “whether traversal is complete” separately, avoiding the presentation of a complete list midway through pagination.

Original source https://xrpl.org/docs/references/http-websocket-apis/public-api-methods/account-methods/account_objects