>I would have expected the carbon density of oil to be much higher!
You're comparing by weight, so density (which is mass/volume) isn't a part of it. 1kg of wood will take up more space than 1kg of oil. So the density is higher but equal weights of 'mostly hydro-carbon' will release equal amounts of CO2.