A commonly accepted explanation for this is that the "cheaper" model is made to appear less powerful on paper to entire a buyer to upgrade to next model up (i.e. M3).
Relevant tests from 2010 ~ when this meme started: http://www.automobilemag.com/reviews/driven/1009_bmw_335i_33...
In reality, almost all cars "produce" far less ponies at the wheels than stated on spec sheets because HP is "[S]ampled [A]t [E]ngine" - so by time it reaches your wheels, about 20-30% are lost to drive train.
Edit: formatting
The difference you are describing is between "gross" horsepower (SAE J1995 spec.), essentially horsepower measured at an unloaded crankshaft and "net" horsepower (SAE 1349 spec.) or the horsepower measured at the wheels.[1] The difference is due to drivetrain losses and power used to drive non-engine components.
[1] See http://www.edmunds.com/car-technology/horsepower-gross-vs-re...
There's also the common saying "German horses are stronger" because acceleration and dyno tests (long before the turbo 335) have shown them to be faster than they "should" be, in particular to certain American muscle cars. I'm not sure how much reality there is behind this, though.
The Japanese "gentleman's agreement" was a limit on power of 207Kw. Towards the end, many of the cars hit by this were making more than that at the wheels, let alone the crank. It was possible to gain 50Kw on certain WRXes and Evos with a different air intake and exhaust, they were so restricted.
Also, for a while there was an "agreement" that sports bikes wouldn't go faster than 300km/h - they didn't limit them, the end of the speedo was 300km/h. Lots of R1s and Hyabusas will be revving somewhere in the middle of their rev range at 300km/h in top gear, then you can wind on another 4-5-6 thousand rpm, while the speedo stays pegged at 300km/h. You are, of course, going faster than that.
Obviously you don't double the revs, but they for sure increase