Why is there an additional resistor in this phototransistor circuit?
R3 is not required for the functionality of the optocoupler. It is required by the circuitry connected to the OUTPUT. Since we know nothing bout that circuit, we can only guess. It could be there for isolation, short circuit protection, low pass filtering (with the input capacitance of the load), or it sets the DC current on an LED etc.