Dogs can pick up on scents untraceable by a human nose. Cannabis probably isn't the first example to spring to mind; explosives might be...
The idea that the reaction of a dog provides the police with sufficient grounds to stop and search has not yet been challenged in a British court. This is despite the questionable reliability of a dog's behaviour.