Often times people incorrectly link to a page (or a page gets deleted) and so you get 404 Error. This means that the page that you were trying to look for could not be found.
A custom error page lets you put your own message on the error page. It is smart to have a custom error page - it lets you ask the user to notify you how the error occured, and also links them to your homepage.