Because the exchange holds users' assets on their behalf, there's a risk of losing those assets in the event of a hack or bankruptcy (as happened with FTX).
They remain the most widely used option thanks to their ease of use, fast trading speed, and support for fiat currency deposits and withdrawals.