External microphones listen to ambient noise, and the earbuds generate an opposite sound wave that cancels it out. On the train and in the office, the difference is huge.
Always try several ear tip sizes: a good fit in your ears improves both noise isolation and bass.