Mostly to fine tune the output of the secondary in terms of voltage.
Given that AC Mains voltages can vary over a range of +/-10% and a more accurate secondary output is needed, then taps on either the primary or secondary can be used to accomplish this.