As Picasso said, inspiration exists, but it has to find you working.
Brian van der Spuy

Bach was just like the others who had to compose a large quality of pieces for him to produce something truly extraordinary. But you are right in there being exceptions — Wagner was one of them.

You may find Adam Grant’s TED talk on this topic interesting: he produces statistics for this very subject of quantity being necessary for quality.