Try adjusting the number of turns on the transformer. What do you observe about the voltage difference?
A transformer has two coils of wire around a common core. The primary coil induces a magnetic field in the core which produces a current in the secondary coil.
The input voltage is effectively multiplied by the ratio of secondary to primary turns.