A pronoun is used as the direct object exactly as a noun is used as a direct object, as the word that receives the direct action of the verb. Example:
John lost his book. He lost it on the bus.
In the first sentence, the noun 'book' is the direct object of the verb lost and in the second sentence, the pronoun 'it' is the direct object of the verb lost.