Throughout history, God has been at work in and through those He chooses to use greatly. In the book of Joshua, the mighty works God performs are but a shadow of a greater Reality yet to come.
We understand that the One who cut his covenant with the people of Israel is the One who raised our Savior from the dead. He is the unchanging, holy, and eternal God of heaven and earth. So shouldn’t Achan have received some grace?