Gearing, basically. You could take two identical wattage motors, add different gear reduction to each, and get two different torque outputs. So, if you start with an 1800 rpm motor driving a 10:1 gear reduction drive train, the output speed is reduced to 180 rpm, and the motor torque is increased. The same motor with a 5:1 reduction would produce 360 rpm, but with less torque produced. It’s standard in industrial circles to refer to a motor with an attached gear train as a gearmotor.
Keep in mind that all ebike ‘motors’, with the exception of direct drive motors like the Stromer has, are actually gearmotors. Each type (center drive, geared hub, direct drive hub) has advantages, and capabilities overlap among all threee.
If the lower wattage motor serves your particular needs, it will be the more efficient of the two. If however, you want a speedy bike, and still want enough torque to aid in climbing that very steep hill you encounter in your daily commute, the higher wattage version might be the one you should choose. But don’t be deceived by numbers alone.