Liability insurance is a part of almost every single home and auto policy. So, why does it matter and how does it apply to each type of policy?

Liability insurance is a part of almost every single home and auto policy. So, why does it matter and how does it apply to each type of policy?