Generally, it is to pass a poor piece of legislation by attaching it to a good piece of legislation. The main good bill and the poor rider become one bill. The Congressman attaching the bad rider hopes that it will pass because the other Congressmen want the good main part to pass. Riders like these would probably not pass unless attached to something substantially better.