Why does this transistor circuit work?
The transistor is like all things in the real world...it is not perfect. Even when we expect that no current at all should be flowing there is a tiny leakage current. Note that the current flowing when the transistor is active is about 6,000,000 times greater than the leakage current. In most practical situations the leakage current is negligible.