Echolalia can occur with autism, but a person doesn't have to be autistic to have it. It is the immediate or delayed repetition of what another person says. I had it when I was a kid, so back then if someone asked me "How old are you?" I'd immediately repeat "How old are you?" out loud before I answered with my age. I did it because I'm autistic and have difficulty in processing speech when I hear it. If I said the words myself, I could understand them better.
Over time I learned to just silently repeat things inside my head when I needed to. I still have times when understanding speech is really hard. For this reason I like to turn on the Closed Captions when I watch movies or DVDs. There's an article right on Wikipedia about echolalia here: https://en.wikipedia.org/wiki/Echolalia