At that time Joshua built an altar to YHWH, the God of Israel, on Mount Ebal, just as Moses the servant of had commanded the people of Israel, as it is written in the Book of the Law of Moses, “an altar of uncut stones, upon which no man has wielded an iron tool.” And they offered on it burnt offerings to YHWH and sacrificed peace offerings.
Joshua 8:30-31
Joshua had already given God what was required. The sacrifices he offered were more than required. It never hurts to give God more than what he asks.