Sidewalks and parks cost $0 for people to walk on, or let their dog shit in. Maybe $15/hour for the guys in blue jumpsuits to clean it up once a week?
NYC has the largest subway system in the world _by_far_ (and also one of the oldest). It's extremely expensive to operate.
Don't compare it to walking around on sidewalks or in parks.