When the need for certainty gets urgent enough, a person will take an object over an answer.
A need can be entirely legitimate while the vehicle chosen to meet it destroys the thing it reaches for. Rescue was the real need and Yahweh the real source, but the belief that presence can be transported and positioned turns a covenant into equipment. That belief sets a state of borrowed confidence, the confidence becomes a roar of emotion in the camp, and the emotion sends men back into the war that just broke them, louder and no stronger.
The honest question had an answer waiting, and the answer would have cost them something worth paying. Skipping it costs more than a battle: certainty manufactured in an afternoon takes the ark, the priesthood, and the one place they knew to look for God.