If the transformer is low quality (cheap) then its output voltage is very high when there is no load. I have a cheap AC-DC wall wart with a rated output of 9V/100mA and its output is correct. But without a load its output is 19VDC.
The 1k resistor R3 provides a load when there is no other load to keep the output voltage from being too high.