That's a different matter, that's an unpriced externality, were the oil company required to pay to sort the water out didn't choose because they weren't forced to.
So the oil should be economically unviable but due to poor regulation, they were able to extract it.