den is "it" for en (common) nouns. det is "it" for ett (neuter) nouns.
Like in English, you can't just say "is close" or "is raining". In Swedish, to satisfy the need for a subject, the neuter form det is always used.
I asked about this just the other day ;)