Why do mediocre books get published?

Why do mediocre books get published?