Shepherded through Exile (Micah 2:12-13)

The Lord is a good shepherd.  So, if the Lord is good why is it that people who have not contributed to the problem in Israel still face exile?  How does this show that God is good?  We can see that exile is part of the punishment for Israel, but what is encouraging about exile?