Yes, they were buying water that the municipality could sell. And they got that water. The article suggests that the municipality is rationing its residents' water, so they don't have excess water to sell to outsiders.
Basically, the idea that I'm required to sell something is silly. No one said any contracts were broken. People got what they paid for.