Why are the voices of men, women and children different ?

The length of vocal chords varies in all these three, which is the main reason for different voices. Men have the longest vocal chords, while female have little shorter vocal chords than men and children have the smallest vocal chords.