[speculation]
It's possible that the delegates are awarded based on how the candidates fared in the individual caucuses. Perhaps, similar to the electoral college, winning the popular vote nationwide doesn't guarantee a win in the election. An overwhelming win in one caucus may be effectively canceled out by the other candidate's narrow win in another one.
[/speculation]
I’ve seen it work different ways: winner-take-all,
winner-take-all by congressional district,
proportional representation with a threshold (usually 20%)...maybe there’s a website that explains each state’s allocation method.