Here's why:
* "The pencil sharpener" is the subject of the sentence.
* "It" replaces "the pencil sharpener" to avoid repetition.
The sentence could be re-written as: It needed to be emptied.
Here's why:
* "The pencil sharpener" is the subject of the sentence.
* "It" replaces "the pencil sharpener" to avoid repetition.
The sentence could be re-written as: It needed to be emptied.