Some investors see fortunes to be made in the U.S.’s hottest oil field—by speculating in water, not crude.

Fledgling companies, many backed by private equity, are rushing to help shale drillers deal with one of their trickiest problems: what to do with the vast volumes of wastewater that are a byproduct of fracking wells.