The Economist has an article this week on why people rig elections. The answer is, because it works really well. As the summary report of the key findings notes:
Using dirty tactics during elections helps politicians that are already in office. If they use illegal practices to win elections, they can expect to be in office [...]