Smell Blood (in the Water)

What does the idiom “smell blood” mean?

Definition: Sense weakness or vulnerability; be ready to attack

Example: The opposition party smelled blood after the president was hit with corruption charges.