So that it won't fail if nothing is returned by the hook.
The PluginManager will run the correct hook even if the capitalization is wrong ("foo:beforeBar" will be executed as well as "foo:beforebar"). This way users don't have to deal with the correct capitalization of function names issue.