One could argue Bob provided a valuable service by calculating some hard to calculate sums which could then be used by others securely.
The actual math amounts to a best effort guess in a lottery for write access to a database.
The network would function just as fast with 3-10 computers as it does with 3 billion times the amount of "computing" power.
In summary, Proof of Work is designed to waste as much energy and capital input as possible.