First of all, the 500 error page is often included as part of the toolkit being used to make the site, as a generic response to most exceptions. The developer isn't generally going to explain every possible exception in detail to the end user; the most important thing is that they automatically get logs or error notifications with the ACTUAL exception, and can take action to fix it.