How does a complete race exhaust system on a motorcycle increase the power output?

As in, what does it optimise, and why can't this be achieved through standard exhaust systems? (some systems are advertised as to increase power by 10-14 horse-power).
8 answers 8