You fart after you die. Any gasses being held inside by clenched muscles get released. Gases also build up from bacteria and decomposition, so there's more where that came from.