Why did whoever translated Chinese words into the Western alphabet spell them differently than they are pronounced?

by CrackheadHamster
Jasfss

Are you referring to any particular system? As in Wade-Giles vs Pinyin? If argue that both of those romanizations are fairly decent attempts, though Wade-Giles gets a bit butchered in common pronunciation by people not familiar. Or is there another angle you're coming from?