Answer:
In babies, echolalia is a perfectly normal part of speech development. The child hears older people use words, and repeats them in what seems a meaningless way, but they're simply practising human speech sounds.
When an older child or adult develops a continuing habit of immediately repeating words or sentences they hear others say, this form of echolalia needs investigating by a professional.