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.
WAL
Write-ahead log: PostgreSQL records every change in a sequential log before it touches the data files.