I'm not aware of a city on Earth that's been able to obtain the kind of simultaneous density and livability that places like NYC have without mass transit. Comparatively dense cities without mass transit (like Manila) are choked in traffic; changing that traffic to electric traffic will make the air cleaner (good!) but will not address the latter problem.
That's mostly paying for the tunnels, not the track. It shouldn't cost nearly that much, but it's not surprising that it isn't cheap either: the tunnels are being constructed under some of the densest and most expensive real estate in the world, and the resulting stations are significantly larger than others in the system.
And note: if you think that's expensive, you won't believe what it costs to repair highways in NYC[1].
[1]: https://ny1.com/nyc/brooklyn/news/2020/02/25/city-council-fl...