There's an old tradition in cartoons and comedies: criminals (mostly thieves) and bullies often whistle some tunes after doing something bad or when they are likely to be detected by police or guards.
...