The person or other entity that pays a fine or penalty does not receive anything of value in exchange, nor does the Government sacrifice anything of value.
The government isn't losing anything important when the fine is paid by the person.