Transients are meant to disappear by themselves. Some of them do not, and they sit in the options table.
A transient is a cached value with an expiry time. When no persistent object cache is installed, WordPress stores them in the database. Expired ones are normally removed when somebody asks for them. The ones that nobody asks for again just stay there. One WP-CLI command clears the expired ones.
wp transient delete --expired
It reports how many it removed. Use --network as well for network (site) transients on multisite. There is also --all, which deletes every transient, expired or not.
--expired removes only what is already dead, so it is safe to run whenever. --all throws away live caches too, and a site can feel slow for a moment while it rebuilds things. Some plugins keep real data in transients, so I would stay on --expired unless I had a reason.
Also, the command speaks of the database. If your site uses Redis or Memcached as an object cache, transients live there instead and the picture is different. For a small site on plain MySQL, this is a tidy habit before a backup.
Further reading: wp transient delete (WP-CLI command reference), On this site: wp option list –autoload=on –format=total_bytes shows what every page load drags along, On this site: –skip-plugins and –skip-themes get WP-CLI working on a broken site