It's a good question and the simple answer is that in straight and level flight the wing flies at a very slight angle of attack. This gives a slightly longer distance over the top of the wing to produce the lift. When flying inverted it still flies with the same slight (positive) angle of attack. This angle is so small it's not even noticeable (unless you've got a REALLY heavy model

)