R2 acts more like a current limiting resistor for the opto coupler and gate. R3 is the gate resistor. Both are required.
Remember, with no input on the opto isolator, the output is non-conducting. That ties the gate of the mosfet to ground through R3. While off, R2 does nothing, and the mosfet is also OFF, which means the heater is OFF.