The physics of sailing it interesting. It's driven by few forces deriving their effect from a very limited subset of mechanics, but the full subject is deep and the technology that has arisen to take advantage of it is very sophisticated indeed. In a pure sail boat all the forces that matter to where and how fast the vessel goes are fluid forces: drag, lift, and buoyancy.
The simplest sail is just a piece of something put in the way of the wind. With that you only get drag and can only sail downwind. Angle it to deflect the wind1 and you can sail to one side or another but still definitely downwind. Because of drag from the water you can't go even as fast as the wind.2
But if you let the sail bulge a little and tilt it relative the wind, then the air passing over it can run along both the up- and down-wind surfaces and suddenly the sail is acting like an airfoil:3 you have lift as well as drag. With the right set of the right sail and some help from rudder and sideboard, centerboard or keel and you can sail into the wind. The earliest technologies for doing so were not particularly good, and it took a lot of tacking to make much progress upwind, but it could be done.
You can also go faster with a lifting sail. In the early versions this was still slower than the wind owning to drag, but the technology improved.
Of course, with all kinds of sails as your vessel changes velocity the relative velocity (direction as well as magnitude!) of the wind changes too. You have to re-trim the sail(s). That can add to the force and change it's direction. Better lifting sails means both more speed and tacking closer to the wind.
The latter was the biggest driver of the technology for a long time in the history of civilization. Getting half-a-point closer to the wind could cut your travel time by tens of percent.4
Adding a second sail (a jib) is one of the ways to improve the lift effect of a sail: the big deal isn't the extra surface area, it's the way the staggered sails can re-direct the wind more than a single sail and therefore get more lift. That (or any other improvement in the lift effect) means the ability to come still closer to the wind or still more speed in reaches.
Once you have efficient sails, if you add some kind of low-drag hull (outrigger canoe, catamaran, ice-boat, or as in the case discussed above hydrofoiling (!) catamarans) and you can go faster than the wind.
1 Okay. So this is a subset of lift. I'm going to ignore that and use "lift" to mean the force from redirecting boundary-layer flows. Not strictly correct, but useful to make this discussion flow nicely.
2 Here I assume still water. The situation is a little more complicated in flowing water (be that from rivers, tides, or inter-sea choke points like the mouth of the Mediterranean).
3 A soft airfoil whose shape is adjusted by the flow that it re-directs and is adaptively trimmed by a sailor. A lot of complexity enters here. But even trial and error allows improvements.
4 In the classical Roman era cargo ships could make three trips from Rome to the mouth of the Nile and back in two years, and even that meant risking the autumnal storms.5 Lots of people died when they didn't make it to port in time. A few percent shaved off the up-wind leg of the journey could mean your life!
5 Of course that meant wintering over in different cities on alternate years.