This meaning replaces a singular nonhuman noun or a situation already known from context.
I found my phone, but it was damaged.
The dog was hungry, so I fed it.
This grammatical use does not refer to a specific object but fills the subject position in a sentence.
It is raining outside.
It is five kilometers to the station.