Why is a house roof essential?

Why is a house roof essential?