Either they learn it from someone else or make it up themselves. Children imitate others. They can also make up their own words for existing concepts from time to time. If you think about it, adults do these things as well.
In other words, kids use slang because they are just as human as the adults that rule over the society they live in.