The skin friction causes the air near the wing's surface to slow down.
The slowed down layer of air is called the boundary layer.
The boundary layer builds up thicker when moving from the front of the airfoil toward the wing trailing edge.
And the slower we fly, the thicker boundary layer becomes.