When running a group by, one typically includes any variables in the GROUP BY that aren't summarized in the SELECT clause. However, if one field is unique (or a primary key), it can be costly to add min/max/other summary to ensure the query is only grouped on that unique variable.
any_value exists as a solution to this in other SQL variants: MySQL, Snowflake SQL, Google BigQuery, etc.