Interesting, but not really surprising. Evolution is permissive, not obligatory. An early dinosaur that climbs trees, develops feathers for gliding is equipped to take advantage of a "bird brain" as it subsequently develops into a full feathered and flying animal.