That's true, which is why efforts were made to do away with it. However, as noted in the sibling, several political scientists have posited that the result was worse than the previous state of affairs.
In the previous system, if a legislator worked across the aisle on some big project, he might get a relatively small kick-back. A new bridge, funding for a pet project, whatever. At election time, he could point to that and say "hey, I worked across the aisle, and got this thing for you!"
Now, that pet project doesn't get funded. So, at election time, if the legislator goes across the aisle, he gets crucified by more extreme opponents. There is nothing to point to and say "I got you THIS!" The only incentive is to cater to the most extreme constituents to ensure a primary victory.