I presume the PSU you've got isn't one with a transformer and a rectifier in it. You're probably asking about a switchmode power supply.
Remember that other thread about a step-up DC-DC converter? Well, (and pretty surprisingly) the power supply you're probably talking about is also a DC-DC converter.
But wait (you say) isn't the mains AC?
Well, yes, it is. But the first thing your PSU does is rectifies it to produce something like 400V DC.
Then all it does is use a switchmode DC-DC converter to reduce the voltage.
BUT simple DC-DC converters have a DC path from the input to the output, and this would be very dangerous for a power supply running from the mains. So what is done in this case is that the oscillator switches current not to a simple inductor, but to a transformer. The output of this is rectified and becomes your 12V DC.
So you have an AC to DC to AC to AC to DC converter! Why go through all of this? Two reasons:
1) the transformer used operates at a much higher frequency so it needs fewer turns of wire and is thus smaller and lighter and (most importantly) cheaper.
2) Instead of having to regulate the voltage by dissipating heat, the oscillator can be varied to allow the current to flow into the primary for more or less time, thus controlling the amount of power. Feedback from the rectified output is what is used to control this.
3) (did I say 2 reasons?) Because of the high frequency the output filtering can be done with smaller (and thus lighter and cheaper) capacitors.
Switching power on and off is essentially lossless, so the main dissipation often comes from the rectifier diodes on the output. The switching transistor(s) often have smaller heatsinks.
Power to the IC that controlls this can come from one of several sources.
The first is a separate low power DC power supply.
The second (and this sounds similar to the first) is a very simple low current DC source.
The third is from the output of the regulator itself.
The first one is easy to understand, and it's also somewhat rare.
The second isn't even capable of providing enough power to run the IC, and you might think it's no use at all.
The third just sounds impossible because there is no power to start the regulator.
Well, the second and third are used together. The low current that is leaked from the high voltage DC supply is used to charge a capacitor. When the voltage across the capacitor is high enough there is enough power for the regulator to pulse the DC supply once or twice. As it pulses the DC source, the output becomes active and the power from a special output can charge that capacitor to keep the regulator running. It pulls itself up by its bootstraps.