In the US, highways are almost all free but ”payment” is roughed charged through gasoline taxes. You also pay for sewage service based on how much water you use, not how much sewage you produce, based on the assumption that most of your water goes into the sewer.
Charging customers by some other correlated proxy is not robbery; it’s just practical. Which is exactly why the court had no issues with the arrangement.