WooCommerce keeps track of user sessions and baskets in the woocommerce_sessions
table, and if these can quickly fill up your database, particularly if you are subject to bots visiting your website.
The simple solution to this problem is to remove all sessions using the WooCommerce tool.