Early websites were structured like documents linked together. You would move forward through pages by clicking links.
The Back button was introduced so users could easily return to the previous page they visited.
Modern websites are more complex and behave like applications rather than documents. Many use dynamic routing where content changes without reloading the page.
Despite this shift, the Back button remains essential because users expect to navigate their history easily.