That's what happens when smart contracts are insecure.
You are right the insecurity is the root cause of it but now the bitcoin has become very secure and almost all the wallets are being checked by the user before investing the bitcoin. now the bitcoin is being use and the investment of the bitcoin is the best way for the profit I know how the bitcoin is getting famous as it is giving all the people a chance to make your financial status better now.