Consider a river polluted by industrial waste. When the polluter pays to clean it up, the expenditure is treated as a cost which reduces profits and GDP. But when the government pays another company to clean up the river, the expenditure adds to GDP because paying workers adds value.