That may be true of D&D, and many other traditional RPGs. But, there are RPGs that have an explicit end point.
Scum and Villany, for example, is designed for a campaign to run for a dozen to twenty sessions, and then be done.
Deathmatch Island canonically has the PCs working their way through...