Evolution is contingent, and intelligence is embodied, not simply a matter of how big your brain can get. Humans are the most intelligent because of our 'evolutionary baggage' or lack thereof: our dextrous, flat-nailed, 5-fingered hands, our typically mammalian facial musculature, and our throwing abilities owing to our anatomy. Toothless beaks probably help birds be more sapient than their toothy theropod ancestors, but the lack of hands is a liability, and it's not like theropod forelimbs were super useful to begin with. Birds that need to fly are also severely limited in terms of size and strength, which also means that they have 'baggage' to overcome (dextrous humans weighing ~100-200 lbs are able to kill large, protein-rich mammals, modify the environment very significantly, and wield fire).
FWIW, I am definitely more and more impressed by the cognitive capacity of advanced birds, they certainly have a lot of things that other 'smart' mammals don't. But I think that the human body plan is just less limiting.