Hans Küng got his "ticket punched" because he rejected a de fide component of the Catholic Faith (Vatican I and Vatican II) and dug in when queried.

Period.

Your assessment of Joseph Cardinal Ratzinger is belied by his gracious invitation to  Hans Küng to visit him in the Vatican when he was elevated to the papacy, and receive a long conversation and a lunch "on the house".