Recent researches find that infants even at their early stage, they don't behave randomly. They are doing goal-directed movements, for example, they try to reach some target and they learn how to reach by iterating their tries and adapting their motion. This is the inspiration of Goal Babbling algorithm to learn motor skills.
Source: