A developer may want to clean the DB after the tests. It’s almost impossible to find and delete such attribute values from the admin panel and doing it manually takes time and effort. Instead, the solution is to delete product attributes programmatically Magento.
When you delete an attribute, it is automatically removed from any related products and attribute sets.
For more info: https://meetanshi.com/blog/delete-product-attributes-programmatically-in-magento/