Do you mean the babble hypothesis? https://en.wikipedia.org/wiki/Babble_hypothesis

That's exactly it! I didn't knew it had a name until today. Thanks!