Chinese writing does not encode sounds. It encodes meaning. If you write Chinese in pinyin, all you do is write down the sounds, not the meaning.
Said differently: why do we keep writing English like this, instead of using a phonetic alphabet? Same reason.