Gas has a much lower hydrogen concentration and bulk density than oil or water, so both the neutron and density porosity tools mis-read a gas zone, and the direction/size of the error is set by three factors:
Reduced hydrogen index (HI) of gas. The neutron tool infers porosity from the hydrogen concentration of the pore fluid, calibrated to a water-filled, 100% HI reference; gas has HI « 1 (a function of gas density/pressure), so the neutron tool under-reads porosity in a gas zone — it "sees" less hydrogen than the true φ would give if water-filled.
Reduced bulk density of gas. Because ρgas « ρwater, the density tool (φD=(ρma−ρb)/(ρma−ρf), formula sheet) over-reads porosity when ρf is assumed to be water/mud filtrate but is actually gas.
Excavation effect. At high porosity and low Sw, the neutron under-reading is larger than a simple HI-weighted average of gas and rock would predict, because the neutron slowing-down length in a gas-filled, high-porosity rock is disproportionately long — the net result is that the neutron-density "crossover" (φN reading well below φD) is the classic gas indicator, but its exact magnitude also depends on this excavation correction, not on HI/density contrast alone.