its more risky to do because what if the exchange gets hacked or stop operation suddenly without any notice. anything could happen, that means you are ready to let go of your funds. but if its in your wallet (hardware) then you can be sure of saftey as long as you dont expose your keys. you can gain interest on reliable defi platform if you make research well enough.