1 of 2

whose job it was

In ancient Rome, when a victorious general paraded through the streets, legend has it that he was sometimes trailed by a servant whose job it was to repeat to him, "Memento mori".

I found this sentence from 'Steve Jobs', Chapter 35, I wonder if the last "it" is unnecessary here. Why it is used here? Is it possible just a typo or any mistake?