This behaviour was introduced in the HTML 2.0 specification. See the following article for more details:
Form submission and the ENTER key?
When there is only one single-line text input field in a form, the
user agent should accept Enter in that field as a request to submit
the form
Source: W3C Specs