If you take money out of the equation and just consider that we have a large pool of labor to make use of, government's purpose in spending on projects is to allocate some of that labor towards long-term goals that no company would involve itself in as the pure profit potential is too risky, distant, or difficult to capitalize on.