Because it uses Pascal's principle: F=p*S. If you apply small force to small piston you will generate a pressure. According to Pascal's law pressure is the same everywhere in closed system so the same pressure will act on large piston on the other side too. And if pressure is the same but area is bigger then force is bigger as we can see from that formula I mentioned at first.