I think Coinbase and Kraken utilize banking grade level of security which is why they never lost any funds. You never hear about banks or stock brokerages
getting their funds or assets hacked so that is the kind of security you want to implement if you don't want your exchange to get hacked.
i will not dispute this, that the two exchanges mentioned in the OP has really gained strong reputation in the crypto industry, but i still can never get comfortable enough with any exchange that i will be ready to keep my holdings there. i am more concern with my privacy and with exchange i am losing it. so its not for me no matter how much reputation they may have built, just because it has not been hacked doesn't mean it cant be hacked. the fact that i know there is a third party involvement is where i have problem. that's why i will always prefer having direct control of my funds using a self custody and not trust any exchange no matter how secure they may claim to look.