The short answer is that WSB, despite being based on road going machines, is nowhere near as production based as other classes may be.
With that in mind, the Ducati motor has the potential to obliterate the competition in racing tune, so is capped in the interests of fairness.
The reason...