These figures are generally based on consumption rather than production for that reason. It’s not helpful to credit emissions to the people who largely aren’t driving the output.
City living brings efficiencies from operating at scale - fewer miles by car, block of apartments instead of single family homes.