There's this constant tension with D&D where it wants to be medieval and it wants to have easily-reproducible magic. Follow the magic through to its logical conclusion and you get essentially modern technology with a mystical/medieval aesthetic, ignore it and you get big blatant plot holes.
Yeah, it kind of makes sense if magic is rare, difficult to obtain, but not entirely foreign. Basically a luxury good.
To use an example luxury good, we all know what a private jet is. We couldn't build one or buy one, but we know there are people who can. It'd be cool to be in one but not some unimaginable experience.
I would at least grab the body from the corpse pile later. It’s a little less suspicious. Unless there is a time crunch then the rogue might get animated instead.
Of course you let them do it. You also let the victims' family be horrified by the miscarriage of justice and make it their life's work to seek revenge.
And their complete mistrust of the justice system.
Vive la revolution anyone?
It is totally something that a sufficiently wealthy medieval or imperial society would do to kill and revive someone as a form of punishment, or even to kill someone and allow them to be revivified as a way of letting the rich get off easy.