Whole House Water Filter

I recently learned that you could install a whole house water filter in your home.  What would be the main benefit of this and what type of water would require one?  Thanks!