Scientists ignore the fact that gravity plays a role in heating the earth

What traps convection is gravity. It’s why the surface of the earth is warmer than say the top of Mt Everest. Gravity stops all the molecules in the atmosphere including O2 and N2 from floating off into outer space.