A torque sensor only knows how hard you are pushing the crank but has no idea how much power you are actually inputting with your legs. To reduce the thing to absurdity, you provide the maximum torque when you are riding out-of-saddle (actually stomping on the pedals) but you rotate the crank at a very slow rate (cadence). Such way of pedalling is called "grinding" and is usually bad to your knees. The same leg power (or even higher) can be provided by the rider by pedalling lightly but at a high rate (high cadence); this technique is called "spinning".
So pedalling lightly at 80 rpm provides the same leg power as pedalling twice as hard at 40 rpm. The point is, electric motors are efficient when they rotate fast, so spinning makes the motor deliver more power at less battery charge consumption. Spinning is easy on the knees and also delivers more blood to your legs, which is beneficial to you.
The idea behind a good mid-drive motor (such as Bosch,
Specialized, Shimano, Yamaha, TQ, Fazua, etc) is to amplify the rider's leg power. The torque and cadence (not PAS!) sensors have these two values multiplied and delivered to the e-bike computer as the leg power value. Then, the calculated leg power value is multiplied by Boost (Assist) factor such as 2x (200%). If the rider inputs 100 W with their legs, the motor outputs 200 W of mechanical power. It is the most proportional and natural way to provide e-bike assistance.