The log makes crash recovery and replication possible. Every change to a table or an index produces WAL records, so the number of WAL bytes is a deterministic way to measure how much work a write did.