however, that’s really a placeholder for the root node of user/pages/, within that are a bunch of top-level pages usually, and to get those you can do:
{% set root_pages = pages.root.children %}
However, to get the root page of the current page you are in, you must loop and climb back up the way you are already doing.