If the Kenya legislature passes such a law, they can impose such a requirement on Kenyans who want to create such social media groups. Note that this is a license from the Kenyan government, not a copyright or trademark license. In effect, it is a tax on running a social media group, along with various regulations.
I have no idea if this bill is at all likely to pass. If it does pass, it might be hard to enforce, as it would probably require cooperation from Facebook and other social media platforms, and the companies which run those platforms are not located in Kenya, and might not cooperate.