This is a classic example of "survival of the fittest" and the squirrel proved to be fit. However, that Cooper's Hawk realized that the squirrel was too much to handle. That's a large meal for a small hawk like that to catch. Typically they go for for other birds anyways, not small mammals.