JPEG compression is calculated locally in small segments, so variations across the whole surface can still survive, each segment being independent. JPEG is not "meant" to remove detail, more like prioritize large-scale phenomena, which in this case would preserve imbalances between segments.