Ranking of PhD programs is very different from undergrad. Things that matters most to applicants are research fit, and placement track record. The things that matter most to junior faculty can be very, very different. The best PhD program from a student perspective can be a very unappealing place for junior faculty, and vice versa.