Easiest way to picture it is to look outboard at 90° any point along the chord. the if the wing is thinner that's where the air would rather go. If the wing is thicker then it gets more difficult so the pressure can't escape and a shock wave could form.
It's not a perfect explanation but it helps build a mental picture of the pressure distribution.