How do children know what words mean?

Assuming that children can recognise a word (see this post on how they manage that), how do they know what it means?

Why do languages gain and lose sounds?

I attended a fascinating talk recently by Professor Andrew Wedel, who has discovered how to predict whether a language will gain or lose sounds.