You're right. Companies are by their very nature most concerned with making money, and much less concerned with legacy. But I think legacy is also important to making money to a large extent, especially over the long term. I believe Nintendo was actually founded in the 1870s or so. That's a LONG time ago. Back then they made trading cards and the like, but I'm sure they applied the same principles to that as they do to their video games today... otherwise they wouldn't have lasted as long as they did.
Atari used to be the videogame king and everyone probably thought they were invincible back then, but now they don't even exist anymore except as a name which other companies want to buy and use for themselves. Why is that? It may have something to do with horrendously crappy games they made. I mean, consider the game E.T. Many people rank it as the worst game EVER made. Nintendo has never made anything anywhere close to as awful as this, and that is why Nintendo is still around and now the market leader again.
So quality IS better than quantity in the long run. If you go with quantity you may make a lot of money really fast, but chances are your company won't exist 10 years from now. If you go with quality, you might make less money in the short term, but your company may still be in existence in 100 years.
I guess you could say it is just like the parable of the tortoise and the hare. Nintendo is the tortoise, slowly plodding along and being mocked all the way. Other companies are the hare and doing the mocking, but we all know who wins at the end...