Most people who trade crypto use the exchange’s wallet itself. That is, they rely on the exchange to keep the tokens safe. Ideally, they shouldn’t, and they should always keep the assets in a cold wallet away from the exchanges.
The issue with a crypto exchange getting hacked is that the stolen tokens can be moved anywhere. The odds of them being recovered after a hack are slim.
You won’t have an issue like this when trading on Indian stock exchanges. Your securities always reside in your own demat account, which is the equivalent of a crypto cold wallet.
When you buy and sell, stocks are credited or debited to your demat account directly. In the event that NSDL and CDSL, the two depositories, get hacked (a low-probability event), there’s nothing that can be done with the securities transferred.