Bitcoin has a strong security system so we rarely hear about cases of hacked wallets, many people tell of losing bitcoin assets but what they use are wallets from exchanges, and what gets hacked are accounts from these exchanges, even so we must always be vigilant and always follow procedures wallet security.
Actually wallets can also be hacked if someone uses a software wallet from an untrusted source because now there are many software wallets that can be used to store Bitcoins. But not all of them can be suitable for use if the source is not trusted or they are born from an unknown source, so this has not only happened through exchanges but has also happened through software wallets used by users who may not know that the wallet is not good.
As said wallets from exchanges and untrusted platforms is always risky. We don't know when they'll wind up and run. When it comes to bitcoin and other cryptocurrencies, we should not get into it just after someone's words. We should put our efforts and understand before getting into it. This way you can have the basic understanding which is a must to keep everything secure and in an organised way.