It's just a minimal load to keep the output at a safe level.
Transformers can reach way higher voltages than nominal in open circuit, a 12V secondary could easily output 18-24v.
The varistor provides further protection, as it's resistance decreases with voltage, thus increasing the load as the voltage rises.