Except the exact same criticism applies to the alternative: everyone involved in allocating and spending the money you give to build and supply that natural gas pipe is also selfish and short-sighted, and is much more likely to try to enrich themselves over providing a good service.
At least by giving directly, it's easier to control that the money actually gets to the people it's supposed to, even if they don't spend exactly as we might wish they did.