Anagram question doubt

in the 2nd question(count anagrams), why did we use freq array as map instead of using unordered map? didnt get it.