It's the similar as today. The extreme upper atmosphere is very hot, but the air pressure there is extremely low. It's near the atmosphere/space boundary. It's only in the lower atmosphere that the temperature vs altitude rule that we directly experience holds.
Thanks for that explanation.