Because sometimes people download things from the internet that have a wallet stealer. With this they can be easily stolen. Also sometimes links that are infected can also steal your coins.
If you prevent this hackers will have a hard time hacking in your wallet.