How does oral medication for acne know how to clear up the area?

I have a minor acne problem on my chin and the corner of mouth. I recently went to the dermatologist to find out how to get rid of it. She prescribed oral medication that treats acne. My question is how does the oral medicine know where the acne is and how does it clear it up? I guess I'm just really skeptical about this whole thing. Thanks!