GTID mode is enabled on the MySQL server (gtid_mode=ON) but the binlog contains anonymous transactions (without GTIDs) from before GTID was enabled. This happens after migrating from MySQL 5.7 to 8.0, or when enabling GTIDs on a running server without purging old binlogs.
PURGE BINARY LOGS TO 'mysql-bin.XXXXXX';SHOW MASTER STATUS; check that gtid_executed covers all servers.