Why do you use kilometers?

Because it is a sensible unit for measuring distances. It can be related easily to smaller units of distance - like a metre. And there are many crossovers to other measurement units in the SI system - for mass, force, etc.