To give you a perspective, one mile of NYC subway now costs about as much as 1000 miles of 6-lane freeway. One mile of new light rail in Seattle will be enough to maintain all roads in Washington state for half a year.
The same story for water, sewer, and electricity. Dense cities are _incredibly_ expensive to maintain because projects become extremely complicated, with lots of project management overhead (more people-hours). And people are EXPENSIVE, compared to raw materials.