Why do mediocre novels get published?

Why do mediocre novels get published?