“Licenses are also highly flexible when compared to sales or excise taxes because as long as they reflect the reasonable costs of state regulation—including the costs of protecting against a vast array of externalities like public safety, hospital visits, drug rehabilitation, education, and increased administrative costs—they can be imposed by local and state governments without voter or legislative approval.” — Stanford paper.
Think of the externalities for gasoline.