Crime vs politics?

Are criminal cases being used as an excuse to keep away good politicians? And if one is being disallowed the right to contest the elections, is the pretext driven by the cause of setting a good example for the future generations, or is it just another political blame game?