The USA subsidizes the suburbs to an absurd degree, pushing most of the costs into the future and making city dwellers pay more than their share for the rest.
Living in a relatively large house in the suburbs should in principle cost several times more than living in a flat in the city, because it requires vastly more infrastructure and the amortized cost of services is much higher. But our broken economic system has flipped this around and made suburbs extremely artificially cheap, while making most of the building practices that make denser walkable neighborhoods possible illegal under building codes and local ordinances.