That's very self-evident. What matters is that density means costs rise at a slower rate than income and because density tends to raise prices (the area is more desirable all else equal).
Most of the cost of installing water pipes is in digging up the street and paying people to lay the pipes. By comparison putting in a small pipe costs the same as a huge one. Suburbs need small pipes spread over a larger distance to reach X people. High-rises need large pipes over a much smaller distance to reach the same number of people. Even if you assume property values per person were identical and taxes identical the dense area has a massive cost advantage.
Often, that reason is "there's a strong market preference for density, but supply is artificially restricted by parking minimums and zoning regulations put in place by property owners who wish to maximize the value of their asset"
And from a tax revenue standpoint city's get ~4.5x of their revenue from property taxes than from sales tax. And most suburbanites, like urbanites probably spend most of their tax near where they live.