What Actually Happens When You Click “Connect Wallet”?

Most people meet Ethereum through a button: