Is it fair that celebrities have fiction books published?

I can understand perfectly why many excellent writers find this terribly frustrating. Their work, which is every bit as good as anything created by a celebrity author, may never get noticed—or even published—whereas if they were famous, well, it would likely be a very different story.