How Connect Wallet Work

I see many airdrop , exchange , nft use connect wallet method to connect our wallet ,

And in problem , many people on my country , lost his asset after this method viral ,

Connect wallet Do you use a private key to connect, like in forkdelta or exchange dex, or with the connect wallet method, website owners can find out or access our wallet? .