Punishment for sin is death, if you don't sin you don't die, Jesus din't sin, therefore devil has no right to take his life, but still did, so then Jesus is resurrected because he is Holy, now the devil made a huge blunder ( of course which God fully planned ).
Before this moment, Satan would go to God and challenge God but now Jesus defeated Satan and is our inter mediator between Satan, so that when Satan tries to question why this person isn't punished for his sin, Jesus intermediates and says, I already took the punishment for him, so he is free.