Lots of "good movies" (using any definition you want) fail to find an audience. And even more mediocre movies make huge buckets of money. If your goal is to make money then just blindly making "good movies" is probably not your best strategy.
That's one of the reasons why we have so many poor movies (the other reason is that making movies is hard). If your only consideration is making money, you'll produce whatever crap is cheapest to make that still makes reliable income. This is why e.g. consumer market is full of barely-working near-disposable products which existence is a pure waste of natural resources.
Seriously. There's no rule that says that the most profitable product is also the best for the user. In fact, it's almost always the opposite, and A/B-testing things to death leads to the former type of product.
Studios want what's "proven". It's why they will gladly feed in ML data to get shitty focus group type movies. They will then pour huge amounts of money in to try and get back even more.
Box office returns dominate the return for a film, set the license price for long term post-theatrical deals, and decay with a very fast exponential from the opening weekend take. It is extremely rare in modern times for a film to turn a poor opening weekend into a high long term return. The film market simply doesn't work that way however nice it would be if it did.
I read the comment you're responding to a bit differently.
I think most people can enjoy a really bad movie. Some t-and-a, explosions, a bit of CG - it's all good fun even all you can think about after the movie is how awful it was. But when really bad movies are all there is, they quickly lose their charm. Instead of being one off guilty pleasures, they become the movie industry. And that's about the point you stop watching movies at the theater.
I think this describes many people's transition away from movies. The point of this is that pumping out crap may be optimal in the short run. But in the longrun you end up with suboptimal returns, even when profit is your one and only motivation. Incidentally the same story is true and also being played out in various other industries.
Optimizing for next year's quarterlies is often not the same path to optimizing for earning the most money in the next decade.
Lots of "good movies" (using any definition you want) fail to find an audience. And even more mediocre movies make huge buckets of money. If your goal is to make money then just blindly making "good movies" is probably not your best strategy.