The cable turns a mechanism that forces the piston through the caliper, just like applying the brakes would. It's really a great system that resets itself as the pads wear.
Just remember that if you ever need to replace rear pads, you have to manually retract the piston.