The main point is not especially to have a fixed reference compared to a localized message (they are in only one language in the server logs usually).

It’s to be able to categorize errors based on the first 2 characters of the error code which define the class of the error. You can then separate end user errors (syntax errors and so on) from system ones: it’s very useful to filter the error the system administrator have to take seriously into account.