As babies tend to grow up to toddlers they develop “fine motor skills” which help them picking objects. As they are able to pick objects they try throwing them up as an experiment. That’s why babies throw things out of their crib.