The use optocouplers because they need to protect (isolate by means of no electrical contact between the two circuits) the control circuit by any unwanted voltages which may arise on the output. With optocouplers these high voltages can not interfere with the control circuit and destroy it unless they exceed a limit of course.