It goes back to a style of moviemaking I remember seeing as a child, in movies like The Man With The Golden Arm, which I think was shot all on a sound stage.
Sometimes I just hit the keyboard in a way I'd like the rhythm of the tracks to sound.