The general tolerance of "ghostwriting" is one of those things that has no justifications, given attitudes about "plagiarism" generally.
Sure there's some range between "wrote it all on my own" and "paid somebody to do it and haven't even read it myself, yet." No books are really in the first category. They're products with many people involved. But it seems like quite a few are solidly in the second.