Switching the mosfet with PWM completly on/off reduces the power lost to a minimum. Otherwize the mosfet is like a variable resistor and converts the power lost into heat.
using variable resistor is not so efficient way to control the speed of dc motor.energy is wasted in terms of heat.that's why,pwm is used as speed is controlled by duty cycle