Bad books into good movies?

I thought Fight Club was a very mediocre and badly written book; it’s only good quality is that it could be read within a few hours. But the movie was great.