You will agree with me that it makes perfect sense that 007 would need a license to kill, because if someone could kill at will, the world would be a very dark place. You will also agree that sometimes it is necessary to allow someone to kill: like when heartless people try to invade your country, or when a supervillain appears. This is precisely what licenses are for: regulating activities that only have positive effects when regulated. That’s why we use them to drive, prescribe medications, or sell alcoholic beverages.
In economic activities, licenses serve another purpose: they regulate who and under what conditions can benefit from the commons.