How does grapefruit interact with drugs?

Grapefruit and grapefruit juice can affect the amount of medication that reaches the bloodstream. But why?