Replica is lagging because it's taking a long time replicating this transaction:
MariaDB [(none)]> SHOW ENGINE INNODB STATUS\G [...] ---TRANSACTION 150059057945, ACTIVE 12886 sec fetching rows mysql tables in use 1, locked 1 9598 lock struct(s), heap size 1089656, 1077588 row lock(s), undo log entries 7064 MariaDB thread id 1475843, OS thread handle 139836453676736, query id 1244989745 Delete_rows_log_event::find_row(-1) on table `qid_rank` DELETE FROM qid_rank ORDER BY qid DESC LIMIT 100000
It's the usual situation where a query deletes many records (100000 in this case), and row-based replications translates that query into multiple Delete_rows_log_event events.
The table does not have an index on qid_rank, which makes it even slower.
