
The switch on the back of many desktop computers turns off AC to the power supply. The button on the front usually just sends a signal. A small standby supply can keep part of the computer awake enough to receive that signal while the main circuits are off.
Why can a short push shut down the computer?
The operating system can see the button press and close files and programs before it tells the power supply to shut down. Depending on the settings, that same button can do something else, like put the machine to sleep.
Why do some computers have no switch on the back?
The maker can use a power supply without a separate rocker switch. The front button still works as a control, and standby power can remain available as long as the computer is plugged in.
For more on how electrical equipment controls and converts power, see Basics of Electric Utilities 101.