Chinese itself wasn’t much of a tonal language until a little more than one thousand years ago. Modern Chinese tones emerged in the Middle Chinese era as a way to avoid homophony/preserve distinctions of meaning as a lot of old final consonants were lost.