“When someone is convicted of a crime punishable by death and is executed, you hang him on a tree. His body must not remain all night upon the tree. You shall bury him the same day. Anyone hung on a tree is under God’s curse. You must not defile the land that Yahweh your God is giving you for an inheritance and a possession.”
Hanging was worse than being stoned to death. Therefore it had to come to an end quickly. You had to bury him the same day because they were under God’s curse. You should not defile the land of Yahweh.