It is due to your negligence,you should be protecting your private keys,buy some hardwallet,or atleast intall metamask extension so that everytime you are transacting to any dex or decentralized exchange you wont be needed to put your private keys because these decentralized exchanges shouldnt be trusted! You could have been saved when you are doing the basic things.