As you found out, this is not a login performed by a person. By default the serial console is being logged in as root, whether or not someone is actually connected to it. Setting the ttylogin system option to 1 disables this if you believe this to be a security risk.