Publishing runs on selling books. If a publisher doesn't think a book will sell, they won't publish it. However, vanity presses run on selling services to authors. They'll publish anything if they're paid to. But they won't sell any copies, and bookshops won't stock what they print.