WordPress keeps every revision of every post, forever. Nobody asked for that, and it all lives in your database.
By default revisions are on with no upper limit. Each save adds another row to the posts table, and a long article that you edit a lot piles up quickly. One constant puts a ceiling on it.
define( 'WP_POST_REVISIONS', 5 );
With a number, WordPress stores only that many revisions per post and drops the oldest. Setting it to false switches revisions off completely. I would not do that. A few old versions are the cheapest undo button you have, and five or ten is plenty for me.
The caveat: the limit only applies to new revisions. The ones that already exist stay put, so your database does not shrink on its own. To clean up the backlog you need a separate step, for example wp post delete $(wp post list --post_type=revision --format=ids) --force. That one is destructive and permanent, so take a database export first and check what wp post list --post_type=revision --format=count reports before you start.
Revisions also make the editor screen slower to load on a post with hundreds of them, which is one more reason to set a limit early.
Further reading: Editing wp-config.php (WordPress developer docs), wp post list (WP-CLI command reference), On this site: WP_AUTO_UPDATE_CORE decides which WordPress updates install themselves, On this site: set WP_ENVIRONMENT_TYPE so plugins know a site is staging