Why are spies called eyes in this example?

Metonymy, Compound Figurative Expression and Mental Attribution