The glycogen tank is smaller than you think
Trained, carb-loaded athletes carry roughly 500 to 600 grams of glycogen across muscle and liver. That is about 2,000 to 2,400 kilocalories of stored fuel. At marathon race pace a 70 kg runner burns 700 to 900 kcal per hour, with carbs supplying 60 to 70 percent of that energy. The math is unforgiving: without intra-race carbs you run out of stored fuel somewhere between hour 2 and hour 3. That is the wall.
This is also why marathoners famously hit the wall around mile 20. It is not a mental thing. It is a fuel-tank-empty thing.