Understanding a Gemara in Baba Kama

Question: The Gemara in Baba Kama (52a) says: A Galilean said in front of Rav Chisda: When a shepherd is angry at the flock, he blinds the lead goat. It will fall in a pit, and they will follow it. Similarly, when Hashem wants to punish Israel, He appoints an improper leader. Is this the reason for our leadership today?
Answer: Hashem is not punishing us but is redeeming us – already 90-95% and provides us with great leaders.