I don't know why your withdrawal took 24 hours as others only take a couple of hours. I'm not sure what gambling you are choosing, but for sure, if there are instant withdrawals, the fees are too huge, which is why others are forced to use the other method. It is also your fault as you were unable to control yourselves and cancelled the withdrawal. Also, it doesn't make sense if you already withdrawn it and received the money, and again after 24 hours, you will deposit back those winnings.
Maybe the casino doesn't have an instant withdrawal feature and only manually processes the withdrawal so it takes a long time, but usually casinos have an automatic withdrawal process and it only takes a few minutes for the withdrawal to be successful.
In casinos there are several categories that are often applied, there are fees according to the mempool, some are set with withdrawal fees, there are also free withdrawals, those are some of the differences where the casino offers for each withdrawal.
What was wrong was that OP asked why he asked to cancel but he had to ask why the withdrawal was taking so long, and in the end he couldn't control himself to play again without realizing that his balance would run out if he didn't withdraw immediately.