Kids do all kinds of dumb bullshit that ends up hurting them. They eat dirt. They don’t wash their hands. They pick their nose and scabs. They stick stuff where they shouldn’t. Why would using bad language be any different? Well, unlike eating dirt or being unsanitary or otherwise just a general danger to themselves, saying bad words is a vital developmental tool.