From the other responses, it sounds like the real answer is salami slices from lots of other market participants. A large mutual fund buyer pays a slightly worse price because the HFT jumped in ahead of them to arbitrage between the selling market maker and this buyer. So the HFT's profit comes out of the mutual fund's capital. The loss would show up as tracking error for an index fund, for example.
The benefit of this is that the chances are small that you and I will be trading at exactly the same time. So, I say "I want to sell this stock," and a market maker buys it. Later, you say "I want to buy that stock", and you buy it from the market maker. The market maker makes money on the profit of the sale. So, I may get a little less, and you may pay a little more. But, it means that when I wanted to sell, someone was there. And when you wanted to buy, someone was there. That's what people mean by liquidity.
So, back to HFT: the losers are the conventional market makers. The guys in the pit who used to shout-out buys and sells.
The HFT's profits do come from a large mutual fund, but then that large mutual fund can lower it's risk because it can quickly move from one position to another because it can expect a HFT to buy whatever it is selling. Risk has a price (ask an insurance company) and reducing it adds value to the economy.
Perhaps HFT was very lucrative for a while, but competition has naturally squeezed the margins out, but the markets has all the benefits of having HFT around.
The caveats are (i) there are diminishing returns to what trades add in terms of wealth because reducing time and cost of offloading stock a further 15 milliseconds and 0.001% clearly isn't going to radically alter the risks of investing in productive enterprises as reducing the time and cost of selling stock by an hour and 5% was (ii) certain trading behaviours can actually scare real investors away.
Same way as a rail company or Amazon creates wealth not by 'building things', but by moving things from point A to point B cheaper, more easily and for less risk.