A better airplane analogy is that the main is the wing and the jib is a leading edge slat. A slat helps keep the air flow 'attached' (i.e., not stalled) at higher angles of attack. And sails run at very high angles of attack, as compared to wings.The jib is the wing, the main is a flap.