These applications store our private keys on an online server, and you can imagine how 'safe' that'd be!
And if you're asking for the reason why hackers hack these exchanges, then, again, obviously because these exchanges have their users' accounts linked to them and as so many users have their crypto stored, hacking the exchange would mean the hackers would get their hands on the crypto of all the users, which would amount to a lot of money