Michael Caine once said that he hated being in Jaws 3 and that it was a terrible film... but he bought a very nice little vacation home with the money they paid him for being in it.
Bottom line is that if you're an actor you get paid to act. Some roles suck, but they still pay the bills...