Conduction and convection (atomic heat transfer) are completely negligible at those altitudes. Kinetic energy or density don't matter at all; the 3K is the apparent radiative temperature of the cosmic microwave background which is the effective heat sink