The sudo command lets you execute a command as another user (such as root) if you are part of the sudo-group. You do not actually log in as that user. The password you use with the
sudo command is the password of the account you are currently logged into.
Logging in as root on tty2 (your first screenshot) would be the same as running the
su command on the X-window terminal.