Most hacked bitcoiner cause of using malware/phishing wallet/software/website, some of them while using electrum and got phished by installing from malicious server the prompts as a notification. While some of them while using exchanges that were hacked.
The lesson is always verify the source/signature of every wallet you want to install on your device. And don't ever put your bitcoin on exchanges for a very long time or as an alternative for wallet.