const
and let
are recent additions to JS, but for a long time before they were added const
was a reserved keyword (presumably on the basis that it was thought to be a likely future addition to the language).
Since let
used to be a valid variable name, this is presumably for backwards compatibility.